Sub AddBorder()
' shinumon
With Range("A1", ActiveCell)
.BorderAround LineStyle:=xlContinuous, Weight:=xlThin
With .Borders(xlInsideHorizontal)
.LineStyle = xlContinuous
.Weight = xlThin
End With
With .Borders(xlInsideVertical)
.LineStyle = xlContinuous
.Weight = xlThin
End With
End With
End Sub
Range("A1", ActiveCell).Borders.LineStyle = xlContinuous
Range("A1", ActiveCell).Borders.LineStyle = xlDash
Range("A1", ActiveCell).Borders.ColorIndex = 3
Range("A1", ActiveCell).Borders.Weight = xlThick