+ Reply to Thread
Results 1 to 2 of 2

macro for date to auto populate

  1. #1
    Registered User
    Join Date
    07-27-2007
    Posts
    3

    Question macro for date to auto populate

    Hi,

    I would like to set up a macro that will do the following.

    When a date is entered into A6, I need any other cell of my choosing, to automatically increment the date by month values, and

    with this excecuted, i need another cell to of my choosing, to automatically increment the date by month values yet again...
    Last edited by kingtut; 07-27-2007 at 01:19 PM.

  2. #2
    Forum Contributor
    Join Date
    03-13-2005
    Posts
    6,195
    Quote Originally Posted by kingtut
    Hi,

    I would like to set up a macro that will do the following.

    When a date is entered into A6, I need any other cell of my choosing, to automatically increment the date by month values, and

    with this excecuted, i need another cell to of my choosing, to automatically increment the date by month values yet again...
    Hi,

    to increment by 1 month, set the formula as

    =DATE(YEAR(A6),MONTH(A6)+1,DAY(A6))

    adjust A1 to the cell of the date you are incrementing.

    hth
    ---
    added, note, if you seriously want those as Macros then make two macros and set the code to
    Please Login or Register  to view this content.
    and then set Shortcut keys for the pair.

    Select the cell and trigger the shortcut as required.

    ---
    Last edited by Bryan Hessey; 07-27-2007 at 06:09 PM.
    Si fractum non sit, noli id reficere.

+ 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