The VBA Code below, which is part of a much larger sub that pulls and formats data from various other sheets, is formatting the first row, Range A1:I1 which contains headers.
It appears to work as expected but is there a simpler or more efficiant way of doing exactly what this code is doing?
Do I really need to include things such as:
.Strikethrough = False
.Superscript = False
.TintAndShade = 0
.ThemeFont = xlThemeFontNone
and so on or is it best practice to include them, I would rather do things the correct way.
Rows("1:1").RowHeight = 32
Range("A1:I1").Select
With Selection.Font
.Name = "Arial"
.Size = 11
.Strikethrough = False
.Superscript = False
.Subscript = False
.OutlineFont = False
.Shadow = False
.Underline = xlUnderlineStyleNone
.ThemeColor = xlThemeColorLight1
.TintAndShade = 0
.ThemeFont = xlThemeFontNone
End With
With Selection.Interior
.Pattern = xlSolid
.PatternColorIndex = xlAutomatic
.ThemeColor = xlThemeColorLight1
.TintAndShade = 0
.PatternTintAndShade = 0
End With
With Selection.Font
.ThemeColor = xlThemeColorDark1
.TintAndShade = 0
End With
Range("A1").Select
End Sub