Home |
Search |
Today's Posts |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Robert
Sub test() MsgBox ActiveWorkbook.ReadOnly MsgBox ActiveWorkbook.WriteReserved MsgBox ActiveWorkbook.WriteReservedBy End Sub This needs the file to be open. If you want to see if a file is in use before opening it, there is usually a similarly named temp file in the same folder if someone else uses the file. Test opening and closing with a file explorer window open. Best wishes Harald "Robert Crandal" wrote in message ... Are there any VBA functions I can call from an Excel file that will help me determine if a particular Excel 2007 or Word 2007 is currently in "read only" status? In other words, I need to test if an Excel or Word file is opened or in use by another user?? I would like to know any or all methods to achieve this. Thank you everyone! Robert |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Check if cells contain the word "Thailand", return "TRUE" | Excel Worksheet Functions | |||
"Unable to Read File" error message in Excel - solutions? | Excel Discussion (Misc queries) | |||
"Cannot access read-only document" (I get this error when I try to open an Excel file) | Excel Discussion (Misc queries) | |||
"Cannot access read-only document" (I get this error when I try to open an Excel file) | Setting up and Configuration of Excel |