+ Reply to Thread
Results 1 to 4 of 4

Automatic Update of Month

  1. #1
    Registered User
    Join Date
    05-29-2008
    Posts
    2

    Automatic Update of Month

    Hi there,

    I have a spreadsheet where I have listed out the months and Monday "day numbers" for the next two years. We are going to be updating this chart monthly. Is there any way for Excel to automatically delete the previous month and add a month automatically?

    Thanks in advance.

    I have attached a mock file for reference.
    Attached Files Attached Files

  2. #2
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967
    Try this code pasted into the workbook tab in the VBA editor (Alt F11). It will run when the workbook is opened and generate the next 36 months of columns.

    Please Login or Register  to view this content.
    Martin

  3. #3
    Registered User
    Join Date
    05-29-2008
    Posts
    2

    Thanks

    Thank you so much.

    Just wondering, which part of the code do I change so that it only does 30 months ahead?

    Thanks again.

  4. #4
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967
    Please Login or Register  to view this content.
    Change the 36 to 30

+ 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