T
tomwesnick
I have a workbook with over 17 worksheets. Is there an easier way to
format all the cells in every worksheet of a workbook the identical
way-- ie Arial Narrow 10pt. I got this code from a website, (But this
only formats the footer) I would like to format all the cells. Any
help would be appreciated.
Sub InsertHeaderFooter()
' inserts the same header/footer in all worksheets
Dim ws As Worksheet
Application.ScreenUpdating = False
For Each ws In ActiveWorkbook.Worksheets
Application.StatusBar = "Changing header/footer in " & ws.Name
With ws.PageSetup
.LeftHeader = ""
.CenterHeader = ""
.RightHeader = ""
.LeftFooter = "&""Arial Narrow,Regular""&F &A"
.CenterFooter = ""
.RightFooter = "&""Arial Narrow,Regular""&D &T"
End With
Next ws
Set ws = Nothing
Application.StatusBar = False
End Sub
format all the cells in every worksheet of a workbook the identical
way-- ie Arial Narrow 10pt. I got this code from a website, (But this
only formats the footer) I would like to format all the cells. Any
help would be appreciated.
Sub InsertHeaderFooter()
' inserts the same header/footer in all worksheets
Dim ws As Worksheet
Application.ScreenUpdating = False
For Each ws In ActiveWorkbook.Worksheets
Application.StatusBar = "Changing header/footer in " & ws.Name
With ws.PageSetup
.LeftHeader = ""
.CenterHeader = ""
.RightHeader = ""
.LeftFooter = "&""Arial Narrow,Regular""&F &A"
.CenterFooter = ""
.RightFooter = "&""Arial Narrow,Regular""&D &T"
End With
Next ws
Set ws = Nothing
Application.StatusBar = False
End Sub