Finding the Username of a user who has a shared Network file open.

  • Thread starter Thread starter Ken
  • Start date Start date
K

Ken

How can I find the Username of the user who has a shared
network Excel file open, using VBA.
 
Hi Ken,
Sub UsersList()
Dim users, msg As String
users = Workbooks("MyBook.xls").UserStatus
For Row = 1 To UBound(users, 1)
msg = msg & users(Row, 1)
Next
MsgBox msg, 64
End Sub

Regards,
MP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top