Border.LineStyle (Excel)

Returns or sets the line style for the border. Read/write XlLineStyle, xlGray25, xlGray50, xlGray75, or xlAutomatic.

xlContinuous - Continuous line, xlDash - Dashed line, xlDashDot - Alternating dashes and dots, xlDashDotDot - Dash followed by two dots, xlDot - Dotted line, xlDouble - Double line, xlLineStyleNone - No line, xlSlantDashDot - Slanted dashes.

xlDouble and xlSlantDashDot do not apply to charts.


ActiveCell.BorderAround.LineStyle = xlContinuous
Border.LineStyle procedure builder

You can see what current value for the Underline Style is from the Code VBA add-in Object menu in the tooltip.

LineStyle current value