I need the font to be Times New Roman for all the date and i also need the all the data center align. not sure what im doing wrong.
Sub format_worksheets()
Dim i As Long
Dim LC As Long
Application.ScreenUpdating = False
For i = 1 To Worksheets.Count
'Align Text
With Selection
.HorizontalAlignment = xlCenter
Rows("1").HorizontalAlignment = xlLeft
.WrapText = False
.Orientation = 0
.AddIndent = False
.ShrinkToFit = False
End With
' Format Font
With Selection.Font
.Name = "Times New Roman"
.Size = 10
.Strikethrough = False
.Superscript = False
.Subscript = False
.OutlineFont = False
.Shadow = False
.Underline = xlUnderlineStyleNone
.ThemeColor = xlThemeColorLight1
.TintAndShade = 0
.ThemeFont = xlThemeFontNone
Rows("2:2").Select
ActiveWindow.FreezePanes = True
End With
Next i
Application.ScreenUpdating = True
End Sub
Bookmarks