+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    07-01-2008
    Location
    Indianapolis
    Posts
    2

    How to insert update date

    If you have two columns, is it possible to have column B put in the date that data was added to column A?

  2. #2
    Forum Contributor
    Join Date
    06-14-2008
    Posts
    149
    1. Switch to visual basic editor.
    2. Click on the name of your sheet in project explorer at your left.
    3. On the right pane select "Worksheet" from the left drop down and select "Change" from the right drop down.
    4. Now you are in the Worksheet_Change event.
    5. Copy this code between "Private Sub Worksheet_Change" and "End Sub".
    Code:
    Col = Left(Target.Address, 2)
    If Col = "$A" Then Target.Offset(0, 1) = Now
    Now whenever you change a cell in column "A" the next cell in column "B" will be updated with date and time.

    Related Link:
    http://www.exceldigest.com/myblog/20...ined-function/

    Please let me know if you get the expected result.
    Welcome to: http://www.exceldigest.com/myblog/
    "Excel help for the rest of us"

  3. #3
    Registered User
    Join Date
    07-01-2008
    Location
    Indianapolis
    Posts
    2

    Thanks!

    This worked great! And it was so easy to use! Thanks again.

  4. #4
    Forum Contributor
    Join Date
    06-14-2008
    Posts
    149
    You are welcome.

    Thanks for your reply.
    Welcome to: http://www.exceldigest.com/myblog/
    "Excel help for the rest of us"

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.2.0