ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Finding the Username of a user who has a shared Network file open. (https://www.excelbanter.com/excel-programming/309537-finding-username-user-who-has-shared-network-file-open.html)

Ken[_23_]

Finding the Username of a user who has a shared Network file open.
 
How can I find the Username of the user who has a shared
network Excel file open, using VBA.



Michel Pierron

Finding the Username of a user who has a shared Network file open.
 
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

"Ken" a écrit dans le message de
...
How can I find the Username of the user who has a shared
network Excel file open, using VBA.






All times are GMT +1. The time now is 12:33 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com