LineStyle Property

Applies To

Border object.

Description

Returns or sets the line style for the border. Can be one of the following XlLineStyle constants: xlContinuous, xlDash, xlDashDot, xlDashDotDot, xlDot, xlDouble, xlSlantDashDot, or xlLineStyleNone. Read/write Long.

Example

This example puts a border around the chart area and the plot area.

With myChart
    .ChartArea.Border.LineStyle = xlDashDot
    With .PlotArea.Border
        .LineStyle = xlDashDotDot
        .Weight = xlThick
    End With
End With