Home |
Search |
Today's Posts |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Why would one want to avoid an on Error block by replacing it with a slower
approach like looping through all the workbooks? Is there a technical reason or just personal preference? -- Regards, Tom Ogilvy tolgag wrote in message ... If you want to avoid use an On Error block, try following function : Function IsWBOpen(strName As String) as Boolean Dim w as Workbook, Dim bResult as Boolean bResult = False For each w in Workbooks if w.name = strName then bResult = True exit for end if Next IsWBOpen = bResult End Function --- Message posted from http://www.ExcelForum.com/ |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How to: Open closed workbook/Search data tables/Return data to open workbook | Excel Discussion (Misc queries) | |||
Opening Excel, Book1 opens, remains open with other workbook open | Excel Discussion (Misc queries) | |||
how do i open a data workbook when i open a timesheet workbook | Excel Discussion (Misc queries) | |||
How to find file-path of open workbook? | Excel Discussion (Misc queries) | |||
excel 2003 saved file will not open without a blank workbook open | Excel Discussion (Misc queries) |