Share via


Borders Object Members

Excel Developer Reference

A collection of four Border objects that represent the four borders of a Range or Style object.

Properties

  Name Description
Bb255854.properties(en-us,office.12).gif 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.
Bb255854.properties(en-us,office.12).gif 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.
Bb255854.properties(en-us,office.12).gif ColorIndex Returns or sets a Variant value that represents the color of all four borders.
Bb255854.properties(en-us,office.12).gif Count Returns a Long value that represents the number of objects in the collection.
Bb255854.properties(en-us,office.12).gif Item Returns a Border object that represents one of the borders of either a range of cells or a style.
Bb255854.properties(en-us,office.12).gif LineStyle Returns or sets the line style for the border. Read/write XlLineStyle, xlGray25, xlGray50, xlGray75, or xlAutomatic.
Bb255854.properties(en-us,office.12).gif Parent Returns the parent object for the specified object. Read-only.
Bb255854.properties(en-us,office.12).gif ThemeColor Read/write
Bb255854.properties(en-us,office.12).gif TintAndShade Read/write
Bb255854.properties(en-us,office.12).gif Value Synonym for Borders.LineStyle.
Bb255854.properties(en-us,office.12).gif Weight Returns or sets a XlBorderWeight value that represents the weight of the border.