Has anyone seen any VBA that will let me see who has a network file open?
I thought I had found something with http://www.xcelfiles.com/IsFileOpenVBA.htm but this only seems to work with the xls files I check, it fails on xlsx files.
It's not VBA yet (today I've no time), but why not...
Opening Windows Explorer, setting display hidden files to yes, going to the folder where is the Excel file ("filename.xlsx"), checking if it exists a "~$filename.xlsx"?
If not or yes and it's deletable, then the file is closed; if yes and not deletable (aka else), just copy it with .txt extension, open the copied file with any text editor and get string from 2nd char to 55th char.
Thanks for the responses, I didn't think of looking at the xmls or at the temp files, nice thinking out the box
Unfortunately the files I'm looking at are up on esink, I can browse through the web browser or drill down from a link I use in windows explorer. The path from windows explorer being the one I would input into the vba code to get the answer on who has the file open when it is an xls.
I say unfortunately because I don't see any temp files when the doc is open so not able to check that out, (I assume this is an esink thing because I can see temp files on regular shares). When I copy the file to my desktop to check the lastModifiedBy it is showing up as myself.
This all came around after we upgraded to Win7. It used to be that when we tried to open a file that was already in use with our XP machines we would get a message telling us who had the file open.
I use 2010 at work and 2010/2013 at home and if any one has an Excel file open when I try to open the same file I get the error message saying it is locked for editing by "whoever" and the file can only be open in read mode ???