Border Members (Excel)

GitHub-Mark-64px

Contribute to this content

Use GitHub to suggest and submit changes. See our guidelines for contributing to VBA documentation.

Represents the border of an object.

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 the border.

Creator

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

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.

Weight

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