+ Reply to Thread
Results 1 to 31 of 31

track who makes changes in excel

  1. #1
    Forum Contributor
    Join Date
    08-18-2017
    Location
    india
    MS-Off Ver
    2010
    Posts
    490

    track who makes changes in excel

    Hey guys,

    I have a excel file and I need to track who makes changes in excel file.

    Here is the code which I have which works perfectly:
    Please Login or Register  to view this content.

    However it tracks the current user of the PC.


    I was looking for a basic login screen when i open the excel file so that it can show me who makes changes.
    In sheet "Tracker" , column "F" shows the user name .

    So is it possible to create a login screen which captures who logs in to the file and show in column F of sheet TRACKER.?

    Basically i need to create a login screen. The person using the file needs to enter his credentials. Then I can track who makes what changes


    I have attached my excel file
    Attached Files Attached Files

  2. #2
    Forum Expert XLent's Avatar
    Join Date
    10-13-2010
    Location
    Northumberland, UK
    MS-Off Ver
    various
    Posts
    2,704

    Re: track who makes changes in excel

    If you're using this on a network you should find you can use

    Please Login or Register  to view this content.
    the above, unlike Application.Username, will be populated regardless -- and will reflect login credentials of network credentials -- e.g. JDoe

    edit: I may have misinterpreted your requirement ... are you saying you have different people using a common login?
    Last edited by XLent; 10-15-2018 at 12:31 PM.

  3. #3
    Forum Expert
    Join Date
    06-26-2010
    Location
    Austin, TX
    MS-Off Ver
    Excel 2010
    Posts
    1,673

    Re: track who makes changes in excel

    You would probably want to use the Workbook_Open event. From there, use a form or application.inputbox to gather the user info.
    Last edited by Pauleyb; 10-15-2018 at 12:38 PM.
    Pauley
    --------
    If I helped with your issue, I'd appreciate a rep bump (hit the '*' icon to the bottom left of this post).

  4. #4
    Forum Contributor
    Join Date
    08-18-2017
    Location
    india
    MS-Off Ver
    2010
    Posts
    490

    Re: track who makes changes in excel

    Hey,
    Thank you for your reply.
    I have this file on 1 PC.

    and 5 people use this same PC daily to make changes.
    So i wanted to create a login screen so that i know who makes these changes.

    These 5 people often blame each other when there is a error

  5. #5
    Forum Contributor
    Join Date
    08-18-2017
    Location
    india
    MS-Off Ver
    2010
    Posts
    490

    Re: track who makes changes in excel

    Hey Pauley,

    Thanks for your reply.

    I am very new to VBA. Could you brief me little bit about it?
    Thank you

  6. #6
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,810

    Re: track who makes changes in excel

    Save the attached file. Close it and then re-open it. You will be prompted to enter a name. This sample file has a list of users in column A of Sheet2. I just used the letters a, b, c and d for the names. You can enter the names of your 5 users. When prompted, enter one of the four letters. A time stamp will be entered beside the name on Sheet2 each time a user opens the file. This will tell you when any user opens a file. You can hide Sheet2 so that your users cannot see it or modify it.
    Attached Files Attached Files
    You can say "THANK YOU" for help received by clicking the Star symbol at the bottom left of the helper's post.
    Practice makes perfect. I'm very far from perfect so I'm still practising.

  7. #7
    Forum Contributor
    Join Date
    08-18-2017
    Location
    india
    MS-Off Ver
    2010
    Posts
    490

    Re: track who makes changes in excel

    Hey Mumps1,
    Thank you for your reply.

    This sample file works great.
    However a user can easily manipulate while loggin in.
    User "A" can enter his name as "B" and thus that would create confusion.

    Is it not possible for the user to type a password along with their username?

    Also,
    Is it not possible to integrate the vba code of the file which you attached with mine? That way I would be able to track who makes what changes

    Please Login or Register  to view this content.
    Last edited by anilpatni1234; 10-15-2018 at 02:29 PM.

  8. #8
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,810

    Re: track who makes changes in excel

    Try the attached file. Again, save it, close it and then re-open it. I used the following names and corresponding passwords:

    John a
    Mary b
    Jim c
    Lucy d
    Jane e
    Attached Files Attached Files

  9. #9
    Forum Contributor
    Join Date
    08-18-2017
    Location
    india
    MS-Off Ver
    2010
    Posts
    490

    Re: track who makes changes in excel

    Hey Mumps,

    It works great.
    Now a user needs t enter his password.

    However I am not able to see any tracker in the workbook.
    How do i see who logs in and makes what changes?

    Thank you

  10. #10
    Forum Contributor
    Join Date
    08-18-2017
    Location
    india
    MS-Off Ver
    2010
    Posts
    490

    Re: track who makes changes in excel

    Hey Mumps,
    I have added a sheet "Users" in my file in which range A:A has usernames and range B:B has passwords
    In this file the username is "Sik" and password is "A" to open the file.

    I have added your code to my file which is
    Please Login or Register  to view this content.
    By this code I have the login screen.
    However I am not able to see who makes what changes in sheet TRACKER.

    I have attched my workbook.

    Please help me
    Attached Files Attached Files

  11. #11
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,810

    Re: track who makes changes in excel

    I tried the file you attached by making a few changes in some of your sheets and those changes were recorded properly on the Tracker sheet. When you say:
    I am not able to see who makes what changes in sheet TRACKER
    do you mean that the changes are not being recorded in Tracker or that the Tracker sheet is not visible?

  12. #12
    Forum Contributor
    Join Date
    08-18-2017
    Location
    india
    MS-Off Ver
    2010
    Posts
    490

    Re: track who makes changes in excel

    Hi Mumps,'

    The tracker sheet is not visible at all.

    Here is the filw which you attached earlier
    Attached Images Attached Images
    Attached Files Attached Files

  13. #13
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,810

    Re: track who makes changes in excel

    The Tracker sheet and User sheet are hidden so that they cannot be seen or modified by your users. This will prevent them from seeing another user's password and changing the data ono the Tracker sheet. To view the sheets, you have to unhide them.

  14. #14
    Forum Contributor
    Join Date
    08-18-2017
    Location
    india
    MS-Off Ver
    2010
    Posts
    490

    Re: track who makes changes in excel

    Hey Mumps,
    I tried doing that too.

    I right click, but I am unable to select UNHIDE button.
    I have attached the screenshot . Please check.

    I dont know where the sheet is hidden?
    Attached Images Attached Images

  15. #15
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,810

    Re: track who makes changes in excel

    Do the following: Hold down the ALT key and press the F11 key. This will open the Visual Basic Editor. You will see all your sheets listed in the left hand window pane. Click the "Users" sheet to highlight it and then in the top menu, click "View" then click "Properties Window". At the bottom of the "Properties Window" you will see that the 'Visible' property is 'xlSheetVeryHidden'. Click on that property and change it to 'xlSheetVisible'. Repeat the process for the Tracker sheet. You then will be able to see the sheets. You can go back and change the 'Visible' property to hide them again if you wish. I would suggest that you keep them hidden for security reasons.

  16. #16
    Forum Contributor
    Join Date
    08-18-2017
    Location
    india
    MS-Off Ver
    2010
    Posts
    490

    Re: track who makes changes in excel

    Sure Mumps1,

    Thank you for yoour help.
    I was able to get the tracker and user sheet successfully.
    I would make it xlSheetveryhidden very soon.

    However in sheet tracker , in users it shows "DELL".
    Dell is my PC name.

    Is it not possible to show the username of the person who logs in and makes changes?
    By username I mean the credentials which we enter when we open the excel file. In this case it is John, ,,,,....

    I have attached the workbook.
    Please do have a look
    Attached Images Attached Images
    Attached Files Attached Files
    Last edited by anilpatni1234; 10-16-2018 at 11:41 AM.

  17. #17
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,810

    Re: track who makes changes in excel

    If you mean the name the user enters when the file is opened, try the attached version of the file.
    Attached Files Attached Files

  18. #18
    Forum Contributor
    Join Date
    08-18-2017
    Location
    india
    MS-Off Ver
    2010
    Posts
    490

    Re: track who makes changes in excel

    Hey Mumps,

    This version of the file works perfectly...

    Thank you.
    THANK YOU SO MUCHHHHHH.


    Also one small help needed.
    In sheet PRODUCT , Range A:D - i type my product details. (item, weight, etc)
    Is it possible to have the same username in column S of sheet PRODUCT as well when someone makes changes ?

    Example: I make changes to cell B9 of sheet "PRODUCT" . Then i would basically want the username to appear in cell S9
    or
    I enter product details on cell A11, then it shows me the username in cell S11
    Basically have the username of the person who makes changes to the row
    Attached Files Attached Files
    Last edited by anilpatni1234; 10-16-2018 at 12:24 PM.

  19. #19
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,810

    Re: track who makes changes in excel

    Do you want the user name to appear in column S if you make changes only in column B or in columns A:D?

  20. #20
    Forum Contributor
    Join Date
    08-18-2017
    Location
    india
    MS-Off Ver
    2010
    Posts
    490

    Re: track who makes changes in excel

    Hey Mumps
    Thanks for your reply.
    I want the username to appear in column S if a user makes changes in A:D

    This way i can know who makes changes to a product information

    thank you

  21. #21
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,810

    Re: track who makes changes in excel

    Try the attached file.
    Attached Files Attached Files

  22. #22
    Forum Contributor
    Join Date
    08-18-2017
    Location
    india
    MS-Off Ver
    2010
    Posts
    490

    Re: track who makes changes in excel

    Hey Mumps,

    THis code worls wonders for me.

    THANK YOU SO MUCHHHHHHHH
    thank you for your help.
    it means a lot.
    THANK YOUUUUUUUU.

    have a great day! thank you again

  23. #23
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,810

    Re: track who makes changes in excel

    You are very welcome.

  24. #24
    Forum Contributor
    Join Date
    08-18-2017
    Location
    india
    MS-Off Ver
    2010
    Posts
    490

    Re: track who makes changes in excel

    Hey Mumps,

    I am facing a problem.

    In the above attached file, is it not possible to mask the password ?

    so a user enter his name and the password must be masked so that no one sees it when he is typing.

    I am not able to find that option to mask the password .
    can you please help me

  25. #25
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,810

    Re: track who makes changes in excel

    Try the attached file.
    Attached Files Attached Files

  26. #26
    Forum Contributor
    Join Date
    08-18-2017
    Location
    india
    MS-Off Ver
    2010
    Posts
    490

    Re: track who makes changes in excel

    Hey Mumps,
    Thanks for your response,

    However I am facing a minor issue.

    Now i write the username - press ENTER ( it moves to password box)
    Now i write the password - press ENTER .

    After pressing ENTER , it moves to OK button.

    However it would be better if i could just unlock the file after writing the password and pressing ENTER button.
    Right now after writing the password and pressing ENTER it moves to OK button and does not unlock the file.

    Also earlier it would close the excel file if the password was wrong.
    Can we do the same here?

  27. #27
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,810

    Re: track who makes changes in excel

    Try the attached. Instead of pressing ENTER, click on the OK button or press ENTER again when it moves to the OK button. This version will close the file if the password is wrong.
    Attached Files Attached Files

  28. #28
    Forum Contributor
    Join Date
    08-18-2017
    Location
    india
    MS-Off Ver
    2010
    Posts
    490

    Re: track who makes changes in excel

    Sure Mumps

    Thank you so much.

    Is it not possible to press ENTER and unlock the file?

    Thank you

  29. #29
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,810

    Re: track who makes changes in excel

    This is the only way I could get it to work that way.
    Attached Files Attached Files

  30. #30
    Forum Contributor
    Join Date
    08-18-2017
    Location
    india
    MS-Off Ver
    2010
    Posts
    490

    Re: track who makes changes in excel

    Hey Mumps,

    This will work perfectly.

    Thank you so much for your help.

    Thank youuuu

  31. #31
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,810

    Re: track who makes changes in excel

    My pleasure.

+ 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. excel template file from Amazon that makes excel pause when copying a row or column
    By JimExcel123 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-27-2017, 08:44 PM
  2. Replies: 2
    Last Post: 02-18-2016, 07:24 AM
  3. Replies: 0
    Last Post: 02-17-2016, 12:25 PM
  4. [SOLVED] Created XLSM in Excel 2013, Customer Makes Change in Excel 2010 -> VBA,Formatting Errors
    By JPFold in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-13-2014, 09:51 AM
  5. Track Changes ( Makes "Undo/Redo" Function Unavailable - Any VBA to Re-Add it?)
    By karimel_romeo in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-29-2013, 12:22 PM
  6. Copy Paste makes excel jam
    By Gilad in forum Excel General
    Replies: 2
    Last Post: 04-29-2010, 08:26 AM
  7. A dll call in vba makes excel bug ???
    By alpha35 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-02-2007, 12:59 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