+ Reply to Thread
Results 1 to 6 of 6

Auto Increment Date on printing

  1. #1
    Registered User
    Join Date
    11-16-2013
    Location
    Reading
    MS-Off Ver
    Excel 2007
    Posts
    2

    Auto Increment Date on printing

    Hi,

    Have no idea when it comes to VBA's so hoping someone can help me out here..... I have a document that is a daily planning sheet with the date in the right hand corner (see attached sheet) which is in merges cells. I want to print a years worth of sheets from the date displayed to put in a folder. Hope someone can write a VBA code for this type of thing as I dont want to have to print a whole year manually.

    Thanks in advance

    Craig

    Daily Planner.xlsx

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,893

    Re: Auto Increment Date on printing

    Give this a try:

    Please Login or Register  to view this content.
    This has been hard coded for the end date to be 1 year from December 1--41959 which is 365 days later. You will need to change this next year.
    Last edited by alansidman; 11-16-2013 at 01:40 PM.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,893

    Re: Auto Increment Date on printing

    Forgot to add this to previous post.

    How to install your new code
    1. Copy the Excel VBA code
    2. Select the workbook in which you want to store the Excel VBA code
    3. Press Alt+F11 to open the Visual Basic Editor
    4. Choose Insert > Module
    5. Edit > Paste the macro into the module that appeared
    6. Close the VBEditor
    7. Save your workbook (Excel 2007+ select a macro-enabled file format, like *.xlsm)

    To run the Excel VBA code:
    1. Press Alt-F8 to open the macro list
    2. Select a macro in the list
    3. Click the Run button

  4. #4
    Registered User
    Join Date
    11-16-2013
    Location
    Reading
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Auto Increment Date on printing

    Thanks Alan. Will try it now

    Craig

  5. #5
    Registered User
    Join Date
    01-23-2015
    Location
    Kansas
    MS-Off Ver
    2013
    Posts
    1

    Re: Auto Increment Date on printing

    I am trying to use this, but it starts at 1900 for me how do I change the year. I have changed the cell it runs from F1 to E4 and that's it.

  6. #6
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,893

    Re: Auto Increment Date on printing

    Unfortunately your post does not comply with Rule 2 of our Forum RULES. Do not post a question in the thread of another member -- start your own thread.

    If you feel an existing thread is particularly relevant to your need, provide a link to the other thread in your new thread.

    Old threads are often only monitored by the original participants. New threads not only open you up to all possible participants again, they typically get faster response, too.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Increment date on printing each page
    By HAPPYHILARY in forum Excel General
    Replies: 16
    Last Post: 03-03-2015, 10:34 PM
  2. [SOLVED] Trying to get the date (Within COUNTIF Formula) to increment when using auto-fill feature.
    By Carmstrong227 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-04-2013, 02:24 PM
  3. auto increment number with date
    By m_k in forum Excel General
    Replies: 6
    Last Post: 03-17-2012, 09:33 AM
  4. Auto Date range and printing.
    By Houm in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-31-2005, 01:11 PM
  5. Auto increment in groups of three while printing
    By fishbin in forum Excel General
    Replies: 0
    Last Post: 03-24-2005, 03:11 PM

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