+ Reply to Thread
Results 1 to 5 of 5

Simple VBA Code for Designated Column Time Stamp (updates when amending Cell in the Row)

  1. #1
    Registered User
    Join Date
    02-20-2021
    Location
    BC, Canada
    MS-Off Ver
    Microsoft Office Professional Plus 2016
    Posts
    13

    Simple VBA Code for Designated Column Time Stamp (updates when amending Cell in the Row)

    Hi all!

    I'm new here, I'm hoping you can help with my little problem.

    Please Login or Register  to view this content.
    Simply adds a timestamp to column U when any value is edited in range A through T.

    Problem is, it detects "deleting a row" as action taken, and leaves the time value in cell below (thats now moved up since the row above was deleted).

    This now does not help me achieve my goal of having the time updated when a row is amended. Its adding the updated time to the entry below, which was never amended.

    Is there a way I can add a condition where the time is not added when the row is deleted?

    I have screenshots but attachments button is not working for me.
    Last edited by MaddenJMF; 02-20-2021 at 10:57 PM.

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Simple VBA Code for Designated Column Time Stamp (updates when amending Cell in the Ro

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however you need to include code tags around your code.

    Please take a moment to add the tags. Posting code between tags makes your code much easier to read and copy for testing, and it also maintains VBA formatting.

    Please see Forum Rule #2 about code tags and adjust accordingly. Click on Edit to open your post, then highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here

    (Note: this change is not optional. No help to be offered until this moderation request has been fulfilled.)
    If posting code please use code tags, see here.

  3. #3
    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,446

    Re: Simple VBA Code for Designated Column Time Stamp (updates when amending Cell in the Ro

    Maybe:
    Please Login or Register  to view this content.
    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


  4. #4
    Registered User
    Join Date
    02-20-2021
    Location
    BC, Canada
    MS-Off Ver
    Microsoft Office Professional Plus 2016
    Posts
    13
    Quote Originally Posted by TMS View Post
    Maybe:
    Please Login or Register  to view this content.
    This worked perfectly, thanks a lot!

    This also prevents the time from populating when a new row is added. But this is actually better than my initial idea.

    As you probably know, this can happen a lot in Excel!

  5. #5
    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,446

    Re: Simple VBA Code for Designated Column Time Stamp (updates when amending Cell in the Ro

    You're welcome.



    If you are satisfied with the solution(s) provided, please mark your thread as Solved.


    New quick method:
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

    Or you can use this way:

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save


    You may also want to consider thanking those people who helped you by clicking on the little star at the bottom left of their reply to your question.

+ 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. help with simple booking items in and out with time stamp
    By Guard2014 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-16-2018, 09:12 AM
  2. [SOLVED] Vba code to autofit column when text is entered & time stamp entry for alternating columns
    By m1980rae in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-23-2014, 05:55 AM
  3. Creating a VBA Code for if cell value ='s and Last Time Cell Update Time Date Stamp
    By Sixto2014 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 02-14-2014, 08:31 PM
  4. Replies: 1
    Last Post: 04-25-2013, 12:17 PM
  5. VBA code Time Stamp based on cell value
    By yodarbel in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-19-2013, 12:48 PM
  6. Replies: 2
    Last Post: 02-23-2013, 03:58 PM
  7. Add date and time stamp to a cell at the end of code
    By jpruffle in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-08-2009, 10:33 AM

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