IncludeBorder Property

Microsoft Excel Visual Basic

IncludeBorder Property

       

True if the style includes the Color, ColorIndex, LineStyle, and Weight border properties. Read/write Boolean.

Example

This example sets the style attached to cell A1 on Sheet1 to include border format.

Worksheets("Sheet1").Range("A1").Style.IncludeBorder = True