Created
March 15, 2019 16:03
-
-
Save hedgejanuary/7c87ef91df0e111c34158a2deb02c4ed to your computer and use it in GitHub Desktop.
Setting table borders.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sub settingTblBorders() | |
ActiveSheet.Cells.Clear | |
With Selection.Borders(xlEdgeTop) | |
.LineStyle = xlContinuous | |
.TintAndShade = 0 | |
.Weight = xlThin | |
End With | |
With Selection.Borders(xlEdgeBottom) | |
.LineStyle = xlContinuous | |
.TintAndShade = 0 | |
.Weight = xlThin | |
End With | |
With Selection.Borders(xlInsideHorizontal) | |
.LineStyle = xlContinuous | |
.TintAndShade = 0 | |
.Weight = xlHairline | |
End With | |
Dim r As Long | |
r = Selection.Row - 1 | |
With Rows(r).Font | |
.Bold = True | |
.Size = 8 | |
End With | |
End Sub |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment