+ Reply to Thread
Results 1 to 6 of 6

Insert/append todays date when workbook is open

  1. #1
    Registered User
    Join Date
    04-20-2008
    Location
    New York City
    MS-Off Ver
    2003
    Posts
    38

    Insert/append todays date when workbook is open

    Hello. I have a sheet with Dates going down column A. What I am trying to do is have todays date populate the next empty cell going down column A once the workbook is open. If todays date is present then do nothing.

    Please Login or Register  to view this content.
    I really dont know what I am doing. But I am trying. Thanks in advance.

  2. #2
    Registered User
    Join Date
    03-24-2010
    Location
    Pune, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    36

    Lightbulb Re: Insert/append todays date when workbook is open

    Hi evenings,

    As per my understanding about your query, you wish to add today's date in the lastrow of column A which is empty, right?

    If I guessed it right then you can try this code

    Please Login or Register  to view this content.
    Cheerz,
    ~Ne@l

    *********************************************************************
    Save a tree. Please think before you print this post and/or attachments.

  3. #3
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Insert/append todays date when workbook is open

    Hi,

    Assuming the dates are in chronological order then in the Workbook Open Event simply add

    Please Login or Register  to view this content.
    HTH
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  4. #4
    Forum Expert
    Join Date
    06-25-2009
    Location
    Sofia, Bulgaria, EU
    MS-Off Ver
    Excel 2003-2013
    Posts
    1,290

    Re: Insert/append todays date when workbook is open

    @nchavan: Using Now will add not only the current date, but also current time. Also if column A is empty it will leave Cell A1 blank.
    @ Richard: In this case it will overwright the last cell in column A.

    So I would suggest to add In ThisWorkbook module:

    Please Login or Register  to view this content.
    Buran
    Last edited by buran; 03-29-2010 at 09:44 AM.
    If you are pleased with a member's answer then use the Star icon to rate it.

  5. #5
    Registered User
    Join Date
    04-20-2008
    Location
    New York City
    MS-Off Ver
    2003
    Posts
    38

    Re: Insert/append todays date when workbook is open

    Thanks alot with the quick help guys. Subs are working great. thanks again

  6. #6
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Insert/append todays date when workbook is open

    @ Richard: In this case it will overwright the last cell in column A.

    Quite correct, well spotted. I should have added a .Offset. i.e.

    Please Login or Register  to view this content.
    Rgds

+ 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