+ Reply to Thread
Results 1 to 5 of 5

Page numbering when printing - HELP

Hybrid View

  1. #1
    Registered User
    Join Date
    09-23-2011
    Location
    Cambridge UK
    MS-Off Ver
    Excel 2003
    Posts
    3

    Page numbering when printing - HELP

    HELP! I have a 1 sheet (portrait) document that i would like printed out 100 times, but the first page I would like numbered 1 and the last page I would like to be numbered 100. is this possible?

    At the moment I am having to print a blank 100 page word document and then use those pages to print my document from excel 100 times! Its too long winded and fiddly, and liable to go horribly wrong if someone in my office uses the printer when I am sending my document to print!

  2. #2
    Forum Expert Domski's Avatar
    Join Date
    12-14-2009
    Location
    A galaxy far, far away
    MS-Off Ver
    Darth Office 2010
    Posts
    3,950

    Re: Page numbering when printing - HELP

    You could use some code like this:

    Sub test()
    
    Dim i As Long
    
    For i = 1 To 100
        With Sheets("Sheet1")
            .PageSetup.CenterFooter = "Page " & i
            .PrintOut
        End With
    Next i
    
    End Sub

    Change the sheet name as appropriate.

    Dom
    "May the fleas of a thousand camels infest the crotch of the person who screws up your day and may their arms be too short to scratch..."

    Use code tags when posting your VBA code: [code] Your code here [/code]

    Remember, saying thanks only takes a second or two. Click the little star to give some Rep if you think an answer deserves it.

  3. #3
    Registered User
    Join Date
    09-23-2011
    Location
    Cambridge UK
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Page numbering when printing - HELP

    code - i am not that clever!

  4. #4
    Registered User
    Join Date
    09-23-2011
    Location
    Cambridge UK
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Page numbering when printing - HELP

    I still need help with this!

  5. #5
    Forum Expert Domski's Avatar
    Join Date
    12-14-2009
    Location
    A galaxy far, far away
    MS-Off Ver
    Darth Office 2010
    Posts
    3,950

    Re: Page numbering when printing - HELP

    The code needs to go into a regular VBA module: http://www.contextures.com/xlvba01.html#Regular

    Dom

+ Reply to Thread

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