ChartBorder.Weight property (Word)

Returns or sets the weight of the border. Read/write XlBorderWeight.

Syntax

expression.Weight

expression A variable that represents a 'ChartBorder' object.

Example

The following example sets the border weight for the value axis of the first chart in the active document to medium.

With ActiveDocument.InlineShapes(1) 
 If .HasChart Then 
 .Chart.Axes(xlValue).Border.Weight = xlMedium 
 End If 
End With

See also

ChartBorder Object

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.