View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
James Ravenswood James Ravenswood is offline
external usenet poster
 
Posts: 143
Default Determine which user has write access to a file?

On Mar 5, 8:55*pm, "Robert Crandal" wrote:
If an Excel 2007 workbook file is currently opened by another user, Excel
will display a message box telling you exactly which user has the
file open.

If Excel knows who currently has write access to a workbook, does
that mean there is a function somewhere that I can use to determine
the username of a file that is currently open?

Thank you!


Hi Robert:

How about:

Sub dural()
MsgBox ThisWorkbook.WriteReservedBy
End Sub