troubleshooting Question

Footer font will not change when using macro code

Avatar of Robert Casaletta
Robert CasalettaFlag for United States of America asked on
Microsoft OfficeMicrosoft ExcelMicrosoft Applications
10 Comments1 Solution440 ViewsLast Modified:
I am able to update all the footers on the worksheets within my workbook, but I am having problems adjusting the footer font when running the code for the footers.  Any clues?  
Sub InsertName_Click()
Dim ws As Worksheet, i As Long
Dim DlrName As Name
Dim OR_Date As Name
    Application.ScreenUpdating = False
    i = 0
    For Each ws In ActiveWorkbook.Worksheets
        i = i + 1
        If i > 1 Then
            Application.StatusBar = "Changing header/footer in " & ws.Name
            With ws.PageSetup
                .CenterFooter = Worksheets("ReportCover").Range("DlrName")
                .RightFooter = Worksheets("ReportCover").Range("OR_Date")
            End With
        End If
    Next ws
    Set ws = Nothing
   Application.StatusBar = False
End Sub
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 10 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 10 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros