• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Shared Workbook

Abhijeet

Active Member
Hi
I want which user are open the file i want this info with the help of macro.I have track changes macro but in that macro if any save or delete the value then identify but i need who are use or open the file info in that
 

Attachments

  • Track Changes Macro.xlsm
    23.2 KB · Views: 4
As i understand you need something like this...

Code:
Private Sub Workbook_Open()

Dim user As Variant, struser As String
Application.ScreenUpdating = False
struser = Application.UserName
L1:
user = Application.InputBox("May i know your name Pls!!!") ', "Login User", , , , , , Type:=2)
Select Case user
    Case False
        ThisWorkbook.Close False
    Case ""
       MsgBox "You must click Cancel to exit.", 48, "Nothing."
       GoTo L1
End Select
End Sub
 
Back
Top