In manual mode when you try to open the file, the dialog "File in Use" appears having "File is locked by 'user name'" message.
I use Excel Automation to work with Excel files. When the file is opened by another user, then the file is opened as a read-only. In this situation I would like to get programmatically the user name by whom file is used.
Something like:
if NOT oExcel.Workbooks.CanCheckOut(filename)
'*get the user name, how?
....
Thanks in advance
Yuri Rubinov
I use Excel Automation to work with Excel files. When the file is opened by another user, then the file is opened as a read-only. In this situation I would like to get programmatically the user name by whom file is used.
Something like:
if NOT oExcel.Workbooks.CanCheckOut(filename)
'*get the user name, how?
....
Thanks in advance
Yuri Rubinov