Border.Weight property (Excel)
Returns or sets an XlBorderWeight value that represents the weight of the border.
expression A variable that represents a Border object.
Note that the visual properties of a Border object are interlocked; that is, changing one property can induce changes in another. In most cases, the induced changes serve to make the border visible (which may or may not be desirable). However, other (more unexpected) results are possible. For an example, see the Border object.
This example sets the border weight for oval one on Sheet1.
Worksheets("Sheet1").Ovals(1).Border.Weight = xlMedium
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.