Home |
Search |
Today's Posts |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Todd,
Here's a simple little function that checks for a workbook being open Function IsWBOpen(Name As String) Dim oWB As Workbook On Error Resume Next Set oWB = Workbooks(Name) On Error GoTo 0 IsWBOpen = Not (oWB Is Nothing) End Function Test with If IsWBOpen("Stats Manager.xls") Then .... -- HTH Bob Phillips ... looking out across Poole Harbour to the Purbecks (remove nothere from the email address if mailing direct) "Todd Huttenstine" wrote in message ... I have some code that I do NOT want to execute if Workbook "Stats Manager.xls" is open. What is the code to check to see if "Stats Manager.xls" is open? Thank you Todd Huttenstine |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
RETRIEVE DATA FROM ANOTHER WORKBOOK BY CHECKING ON WORKBOOK DATE | Excel Worksheet Functions | |||
Checking if workbook is open | Excel Programming | |||
Checking if workbook open (where path is unknown) | Excel Programming | |||
Checking for Open Workbook | Excel Programming | |||
checking if workbook is open before accessing | Excel Programming |