+ Reply to Thread
Results 1 to 17 of 17

Increment date on printing each page

Hybrid View

  1. #1
    Registered User
    Join Date
    07-06-2007
    Posts
    11

    Increment date on printing each page

    I need to print a daily manual check list and with each copy I print need to increment the date field ie: 1st page printed = 10th July 2nd page printed = 11th July.

    Is this possible please ...... Thanks.

  2. #2
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097

    Re: Increment date on printing each page

    Hi,

    Can't you put a custom footer in the page set up with something like "Printed on " then click the date icon?
    oldchippy
    -------------


    Blessed are those who can give without remembering and take without forgetting

    If you are happy with the help you have received, please click the <--- STAR icon on the left - Thanks.

    Click here >>> Top Excel links for beginners to Experts

    Forum Rules >>>Please don't forget to read these

  3. #3
    Registered User
    Join Date
    07-06-2007
    Posts
    11

    Re: Increment date on printing each page

    Wise Old Owl...

    Sorry - just to clarify ....

    I print one months worth of safety check sheets in one go ... so when I send it to the printer can Excel create a different date on each page???

    Thanks for your time.

    Hilary

  4. #4
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097

    Re: Increment date on printing each page

    Hi,

    To do that you would need a macro, but if you want a workaround you could go to File > Page Set up > Header/Footer, click Custom Header in the left section type July and a single space, then click on Page number icon (2nd one). Then when printed each new page is "dated". Obviously you would need to edit it for each month. does that work for you?

  5. #5
    Forum Expert Palmetto's Avatar
    Join Date
    04-04-2007
    Location
    South Eastern, USA
    MS-Off Ver
    XP, 2007, 2010
    Posts
    3,978

    Re: Increment date on printing each page

    OldChippy,

    Slick trick - I like it!

  6. #6
    Registered User
    Join Date
    07-06-2007
    Posts
    11

    Re: Increment date on printing each page

    I agree with Mr South Carolina! ... very slick.
    Thank you - will try it when I go into work.

    The Macro you mention ..... is it complex?
    If not I'd like to have a go at it if you wouldn't mind pointing me in the right direction.

    Much appreicated,
    Hilary

  7. #7
    Registered User
    Join Date
    12-12-2010
    Location
    Hershey, PA
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Increment date on printing each page

    I'm trying to do the same thing but I need 6 months in advance and need the day of week included. Is that possible?

  8. #8
    Registered User
    Join Date
    04-22-2014
    Location
    california
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Increment date on printing each page

    Can you create something that allows me to pick dates to print?

  9. #9
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Increment date on printing each page

    you said each page. not that your report took 2 pages!
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    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

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

    Re: Increment date on printing each page

    try this code
    Sub datesinfooter()
        Dim CopiesCount As Long
        Dim CopieNumber As Integer
        Dim N As Integer
        
        N = 1
    
        CopiesCount = Application.InputBox("How many days in month ?", Type:=1)
    
        For CopieNumber = 1 To CopiesCount
            With ActiveSheet
           
             .PageSetup.RightFooter = "&""Arial,Bold""&16DATE : " & N & Format(Now, " MMMM YYYY")
            
       
         .PrintOut 'Print the sheet
           
            End With
            N = N + 1
        Next CopieNumber
    
    ActiveSheet.PageSetup.RightFooter = ""
    
    End Sub

  11. #11
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Increment date on printing each page

    I slept on it and came up with this, there may be(well there definitely are to be honest) neater ways as my vba isn't too hot!!!
    Attached Files Attached Files

  12. #12
    Registered User
    Join Date
    07-06-2007
    Posts
    11

    Re: Increment date on printing each page

    Thank you so much for your hard work.
    Will try it when I get into work.
    Grateful Hilary

  13. #13
    Registered User
    Join Date
    04-23-2010
    Location
    Adelaide Australia
    MS-Off Ver
    Excel 2007
    Posts
    1

    Re: Increment date on printing each page

    My solution for creating a month of pages with a new date on each page required no special macros or page headers.
    I simply created one day and then inserted a page break and continually copied and pasted the days underneath until a month was completed,
    incrementing each day by a +1 function.

  14. #14
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Increment date on printing each page

    please start your own thread link to this if required

+ 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