Borders Properties (Excel)

This object has the following properties:

Name

Description

Application

When used without an object qualifier, this property returns an Application object that represents the Microsoft Excel application. When used with an object qualifier, this property returns an Application object that represents the creator of the specified object (you can use this property with an OLE Automation object to return the application of that object). Read-only.

Color

Returns or sets the primary color of the object, as shown in the table in the remarks section. Use the RGB function to create a color value. Read/write Variant.

ColorIndex

Returns or sets a Variant value that represents the color of all four borders.

Count

Returns a Long value that represents the number of objects in the collection.

Creator

Returns a 32-bit integer that indicates the application in which this object was created. Read-only Long.

Item

Returns a Border object that represents one of the borders of either a range of cells or a style.

LineStyle

Returns or sets the line style for the border. Read/write XlLineStyle, xlGray25, xlGray50, xlGray75, or xlAutomatic.

Parent

Returns the parent object for the specified object. Read-only.

ThemeColor

Returns or sets the theme color in the applied color scheme that is associated with the specified object. Read/write Variant.

TintAndShade

Returns or sets a Single that lightens or darkens a color.

Value

Synonym for Borders.LineStyle.

Weight

Returns or sets a XlBorderWeight value that represents the weight of the border.

Show:
© 2014 Microsoft