Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Excel 2000
I used the test open workbook code provided by Ron de Bruin on an earlier post Sub test() If bIsBookOpen("test.xls") Then MsgBox "Open" Else MsgBox "Not Open" End If End Sub Function bIsBookOpen(ByRef szBookName As String) As Boolean ' Rob Bovey On Error Resume Next bIsBookOpen = Not (Application.Workbooks(szBookName) Is Nothing) End Function I found this only works if the excel documentB being tested is in the same folder as the macro documentA. If documentB is open and in a different folder the function will return a not open variable. Is it possible to change this code to test document B located at a different network folder to see if the document is open? I tried to replace "test.xls" with "networkDrive:\network folder\test.xls" and it did not work. Thanks PJ |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Open Workbook using URL instead of network path | Excel Programming | |||
testing for open workbook | Excel Programming | |||
Is workbook open anywhere in network? | Excel Programming | |||
Is workbook open on the network? | Excel Programming | |||
Testing for open workbook | Excel Programming |