How to Get the Username of Current User Opening An Excel File?


#1

Hello, sometimes a write to an Excel file in a server failed because another user is using it,
and I need to get who is the user opening that Excel file.

I read How can I know the user that is running some process? and
http://www.vbforums.com/showthread.php?711485-RESOLVED-How-to-get-username-who-currently-has-excel-file-open (found the second one to be likely to help, but I don’t know how to apply this in UiPath).

Can someone suggest what to try?


#2

@whyyouandi
Check task manager, you can find the user who is accessing the excel.


#3

Hello @shankm, currently I am incapable of testing it with other users in the network,
but when I run multiple Excel from my PC, it only shows me one EXCEL.exe process.
When it is run by another user in the network, will it show the user running the Excel file I want?