+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    06-27-2009
    Location
    England
    MS-Off Ver
    Excel 2003
    Posts
    6

    Question Print number into Footer

    Hi,

    I was wondering if anyone here could help me.
    I have one excel sheet with only one page of information.
    But i'll be printing out 40 copies and wish to track the distribution of the document.

    Is there a macro that will make the right footer correspond to the print number. I.e first off the printer will have one in the footer, second one printed will have two.. and so forth.

    Thanks.. any suggestions will be helpful.

    P.S - If there is a way of doing this without a macro, even better!
    Last edited by Tidus1224; 07-20-2009 at 12:30 AM.

  2. #2
    Forum Guru martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    10,477

    Re: Print number into Footer

    with a litle reworking of
    http://www.rondebruin.nl/print.htm#same


    Code:
    Sub PrintCopies_ActiveSheet_1()
        Dim CopiesCount As Long
        Dim CopieNumber As Integer
        CopiesCount = Application.InputBox("How many copies do you want", Type:=1)
    
        For CopieNumber = 1 To CopiesCount
            With ActiveSheet
            
                
                .Range("d1").Value = Range("d1").Value + 1
    
            .PageSetup.RightFooter = Range("d1").Value
            .PrintOut 'Print the sheet
            End With
            
        Next CopieNumber
    ActiveWorkbook.Save
    End Sub
    placed in a new module(see my sig for where to put code)
    then assigned to a button (which you use instead of print)
    change d1 to somwhere outside your print area as it holds the count of copies
    sheet saves after each print to make sure count is preserved
    Mojito connoisseur and a dabbler in Cisco
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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.2.0