ChartBorder.Weight Property (PowerPoint)

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

Syntax

expression. Weight

expression A variable that represents a 'ChartBorder' object.

Example

Note Although the following code applies to Microsoft Word, you can readily modify it to apply to PowerPoint.

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