LineStyle Property Example
This example puts a green dash-dot border around each cell in the range A1:E5.
Spreadsheet1.Range("a1:e5").Borders.LineStyle = owcLineStyleDashDot Spreadsheet1.Range("a1:e5").Borders.Color = "green"