Hi good day. how can I get the computer name who open the excel file using vba. thank you.
Hi good day. how can I get the computer name who open the excel file using vba. thank you.
Hi,
will provide that information.![]()
Please Login or Register to view this content.
Don
Please remember to mark your thread 'Solved' when appropriate.
hi xlnitwit,
thanks for your quick reply. ummm even if the file was open by other computer?thanks
Yes, it will return the name of the computer on which the file with the code is open.
How can i combine the environ (computername) to GetFileOwner Function
![]()
Please Login or Register to view this content.
Last edited by atzdgreat; 05-25-2017 at 09:26 AM.
It seems we were talking at cross-purposes. I said
It would appear from the post you originally made just now that you want the name of another computer on which the file is open, and not the one where the code is running. Further, I do not believe that your GetFileOwner function will work unless you pass the name of the temporary lock file created, and not the name of the original file.it will return the name of the computer on which the file with the code is open.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks