+ Reply to Thread
Results 1 to 5 of 5

Macro for username and timestamp

  1. #1
    Registered User
    Join Date
    10-07-2018
    Location
    UK
    MS-Off Ver
    Excel 2007
    Posts
    12

    Post Macro for username and timestamp

    Hey. Can someone reply to this post with a macro that will insert the username along with date and time into a given cell? It's for a file at work that is saved to a shared location. The workbook in question is essentially a weekly planner for the office to which all staff can add to. But each time a member of staff adds to it, that member of staff's username needs to be inserted along with the time and date of the edit. The idea is that this macro will be linked to a button that staff click when they have finished editing. If anyone can also come up with a macro that does this and then also saves the file to it's original location - would be greatly appreciated. I'm not good at VBA and I've been going round in circles trying to do this. Thanks in advance.

  2. #2
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,057

    Re: Macro for username and timestamp

    What is the definition of "username"? Do you mean the windows user? Or is there a username involved in the book itself?
    Please help by:

    Marking threads as closed once your issue is resolved. How? The Thread Tools at the top
    Any reputation (*) points appreciated. Not just by me, but by all those helping, so if you found someone's input useful, please take a second to click the * at the bottom left to let them know

    There are 10 kinds of people in this world... those who understand binary, and those who don't.

  3. #3
    Forum Expert KOKOSEK's Avatar
    Join Date
    08-03-2018
    Location
    Pole in Yorkshire, UK
    MS-Off Ver
    365/2013
    Posts
    2,737

    Re: Macro for username and timestamp

    Like this:

    Please Login or Register  to view this content.
    Are you able to assign this macro to button yourself?
    Happy with my answer * Add Reputation.
    If You are happy with solution, please use Thread tools and mark thread as SOLVED.

  4. #4
    Registered User
    Join Date
    06-10-2019
    Location
    Netherlands
    MS-Off Ver
    2010-365
    Posts
    1

    Re: Macro for username and timestamp

    Maybe this will help you, not sure if it's exactly what you're looking for. You can add this code to the sheet where you want to tack the changes (after modifying the ranges).

    When a change occurs on each row in the trigger range it will register the username, date and time when the change was made to the specified column's in the same row.

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    10-07-2018
    Location
    UK
    MS-Off Ver
    Excel 2007
    Posts
    12
    Quote Originally Posted by Arkadi View Post
    What is the definition of "username"? Do you mean the windows user? Or is there a username involved in the book itself?
    I mean the windows username.

+ 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. Replies: 2
    Last Post: 11-09-2016, 02:23 PM
  2. Create a username, password and timestamp in excel
    By lyle705 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-27-2015, 03:17 PM
  3. problems with macro to automatically fill the username and macro to unhide sheets
    By djtosh1 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-07-2015, 07:14 AM
  4. double click for timestamp and username
    By tommyboy1984 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 09-25-2013, 11:57 AM
  5. [SOLVED] Username and Password Form - Show Username in Sheet
    By ryan180 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-24-2013, 07:06 PM
  6. Macro that input username
    By burlywood66 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-21-2011, 01:21 PM
  7. Username macro
    By littleoichoy in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-05-2009, 08:50 PM

Tags for this Thread

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