The following VBA procedure can be used to apply borders to a range of cells Public Sub ApplyBorder(ToRange As Range, intColorIndex As Integer) On Error Resume Next With ToRange With .Borders(xlDiagonalDown) .LineStyle = xlNone End With With .Borders(xlDiagonalUp) .LineStyle = xlNone End With With .Borders(xlEdgeLeft) .LineStyle = xlContinuous .Weight = xlThin ...
Hi, welcome to my blog. Do leave a comment if you find any post helpful or have suggestions. I have dedicated this blog to try to put solutions to some of the technical issues I faced as an application developer -Hitesh Manglani