+ Reply to Thread
Results 1 to 7 of 7

Date and Time stamp column when row updated

  1. #1
    Registered User
    Join Date
    05-01-2009
    Location
    North East (Durham)
    MS-Off Ver
    Excel 2003,7 and 10
    Posts
    63

    Date and Time stamp column when row updated

    Can you help modify the attached VB code.

    whenever a person updates any content in a row I want the date to appear in one column and the time in another - the attached only does a combination - I did manage to did it but deleted it and can not get it working again

    So If I put content in A1, ,B1,C1 it should update E1 with the date and F1 with the time
    Attached Files Attached Files
    Last edited by batman1056; 02-11-2011 at 07:10 AM.
    Remember to edit *advance) your question and choose "Solved" if you have your answer

  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,463

    Re: Date and Time stamp column when row updated

    Not sure why you can't just do this, since you have the routines set up:

    Please Login or Register  to view this content.

    Clearly, you need to adjust the column and row settings or you could overwrite data

    Or, you could pass the row and column to one routine and combine the two:

    Please Login or Register  to view this content.

    Regards
    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
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Date and Time stamp column when row updated

    Try this
    Please Login or Register  to view this content.
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  4. #4
    Registered User
    Join Date
    05-01-2009
    Location
    North East (Durham)
    MS-Off Ver
    Excel 2003,7 and 10
    Posts
    63

    Re: Date and Time stamp column when row updated

    royUK - thanks - I have edited it for each sheet - I think the original coding was a little different but this works.

    TM - that codes still just shows (Now) with a date and time in the same box

    Thanks

  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,463

    Re: Date and Time stamp column when row updated

    Must admit, I just combined the code and didn't try it out.

    Never mind, you have a solution.

    Regards

  6. #6
    Registered User
    Join Date
    05-01-2009
    Location
    North East (Durham)
    MS-Off Ver
    Excel 2003,7 and 10
    Posts
    63

    Re: Date and Time stamp column when row updated

    Please Login or Register  to view this content.
    The date being produced buy the code Gives a data MM/DD/YY, but my system is set to DD/MM/YY - why? and how do I fix this?[/

  7. #7
    Registered User
    Join Date
    05-01-2009
    Location
    North East (Durham)
    MS-Off Ver
    Excel 2003,7 and 10
    Posts
    63

    Re: Date and Time stamp column when row updated

    Fixed it - just in case you need to know - you have to use dd/mmm/yy for this to work - found the answer. In VB it will always default to american

+ 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