+ Reply to Thread
Results 1 to 6 of 6

Inserting new row in table will auto populate and save current _date

  1. #1
    Registered User
    Join Date
    04-02-2013
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    97

    Inserting new row in table will auto populate and save current _date

    I am trying to figure out a way when inserting a new row (macro button) into my table. I would like A4 (first row) and so forth to always populate the current date. Then tomorrow the existing rows I inserted today, the date doesn't change to the current date. Essentially, historic data stays historic. I can use today() which will give me current date but then tomorrow the values will change when I open the document. If required here is the Module code I have:

    Please Login or Register  to view this content.

    Thanks so much in advance!

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,380

    Re: Inserting new row in table will auto populate and save current _date

    Given that you are using a macro to insert rows, you may as well put a static system date into the cell in the new row using Date ... rather than having =TODAY() as a formula in a column.

    Suggest you post a sample workbook so that the concept can be demonstrated.


    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    04-02-2013
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    97

    Re: Inserting new row in table will auto populate and save current _date

    Please see attached I have given a sample.

    Not sure I quite understand the Date function on how that will work. Basically, when entering a new row I would like Column A to have today's date populated without changing to next day when opened the following day.

    Thanks again.
    Sample RPT TMS (2).xlsm

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,380

    Re: Inserting new row in table will auto populate and save current _date

    Please Login or Register  to view this content.

    Regards, TMS

  5. #5
    Registered User
    Join Date
    04-02-2013
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    97

    Re: Inserting new row in table will auto populate and save current _date

    Quote Originally Posted by TMS View Post
    Please Login or Register  to view this content.

    Regards, TMS
    Thank TMS, perfect. Added Rep.

  6. #6
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,380

    Re: Inserting new row in table will auto populate and save current _date

    You're welcome. Thanks for the rep.

+ 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. [SOLVED] Auto Populate cell based on auto filter selection from table in same sheet
    By missydanni in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-02-2013, 05:03 PM
  2. [SOLVED] Formula Needed to auto populate current date when text entered into a cell
    By excelteam777 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-15-2013, 09:50 PM
  3. [SOLVED] auto save when open and adding current date to file
    By ferrum_equitis in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 12-04-2012, 01:03 PM
  4. [SOLVED] Help with a system to auto populate month names based on current month
    By rosboy in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-01-2012, 05:17 PM
  5. [SOLVED] Auto populate cells from data in a 6 month range starting with the current month
    By ecarnley349 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-21-2012, 07:32 PM
  6. Auto populate data from another table
    By pphg in forum Excel General
    Replies: 4
    Last Post: 08-22-2012, 09:37 AM
  7. auto populate the current year
    By BarbieD in forum Excel General
    Replies: 2
    Last Post: 06-08-2012, 01:36 PM
  8. Use Table to Auto Populate Other Tables
    By ffmariners in forum Excel General
    Replies: 3
    Last Post: 05-05-2010, 02:12 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