Border.Weight Property

Excel Developer Reference

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

Syntax

expression.Weight

expression   A variable that represents a Border object.

Example

This example sets the border weight for oval one on Sheet1.

Visual Basic for Applications
  Worksheets("Sheet1").Ovals(1).Border.Weight = xlMedium

See Also