+ Reply to Thread
Results 1 to 2 of 2

Stamp User Name and Time for Each Save

  1. #1
    Registered User
    Join Date
    02-18-2007
    MS-Off Ver
    Excel 2007 & 2003
    Posts
    25

    Stamp User Name and Time for Each Save

    Is there any way to have Excel automatically put a name and date/time under the main section of a sheet. For example, the sheet creates a log starting at row 100. The log shows the user ID and the date/time when they saved it.

    100 User Date/Time
    101 NG21 11-30-12 4:30p
    102 SK22 11-30-12 5:35P
    103 JK47 12-02-12 11:20a

    so every time someone saves the file it adds a user name and date/time.

    kind thanks,
    Eddie

  2. #2
    Forum Expert Jakobshavn's Avatar
    Join Date
    08-17-2012
    Location
    Lakehurst, NJ, USA
    MS-Off Ver
    Excel 2007
    Posts
    1,970

    Re: Stamp User Name and Time for Each Save

    Make sure there is a tab called "log" in the workbook. Put the following Event macro in the workbook code area:

    Please Login or Register  to view this content.
    Because it is workbook code, it is very easy to install and use:

    1. right-click the tiny Excel icon just to the left of File on the Menu Bar
    2. select View Code - this brings up a VBE window
    3. paste the stuff in and close the VBE window

    If you save the workbook, the macro will be saved with it.

    To remove the macro:

    1. bring up the VBE windows as above
    2. clear the code out
    3. close the VBE window

    To learn more about macros in general, see:

    http://www.mvps.org/dmcritchie/excel/getstarted.htm

    To learn more about Event Macros (workbook code), see:

    http://www.mvps.org/dmcritchie/excel/event.htm

    Macros must be enabled for this to work!

    The workbook must be saved as .xlsm if you are using Excel 2007 or above.
    Gary's Student

+ 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