Results 1 to 6 of 6

Page set up => header/footer => custom footer => repeat for all pages and sheets

Threaded View

  1. #4
    Forum Expert Alf's Avatar
    Join Date
    03-13-2004
    Location
    Gothenburg/Mullsjoe, Sweden
    MS-Off Ver
    Excel 2019 and not sure I like it
    Posts
    4,792

    Re: Page set up => header/footer => custom footer => repeat for all pages and sheets

    Hi Ger,

    You could try something like this:

    Option Explicit
    
    Sub SetFooter()
    
    Dim ws As Worksheet
    
    Application.ScreenUpdating = False
    
    For Each ws In Worksheets
    
    ws.Activate
    
    With ActiveSheet.PageSetup
    
    ' your code here
    
    End With
    
    Next ws
    
    Application.ScreenUpdating = True
    
    End Sub

    Alf
    Last edited by Alf; 03-19-2012 at 04:37 PM. Reason: better answer

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1