Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I always use this method - it's simple and works well.
jp "Bob Phillips" wrote: On Error Resume Next Set oWB = Workbooks(Filename:="Worksheet in basis.xls") On Error Goto 0 If oWB Is Nothing Then MsgBox "Workbook not open" Exit Sub End If -- HTH Bob Phillips (replace xxxx in the email address with gmail if mailing direct) "Matthew Balch" wrote in message ... Hi, I have a mcro that extracts data from another workbook which is created from a download of another application. How do I in VB write it to check to see if this download is available. The workbook I need to check to see if it is open in the application is called 'Worksheet in basis'. If not available then will simply cancel the macro and prompt the user to extract the data accordingly. Thanks in advance Matthew Balch |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Checking if Workbook is Open | Excel Programming | |||
Checking for open workbook... | Excel Programming | |||
Checking to see if a Workbook is Open | Excel Programming | |||
Checking if workbook is open | Excel Programming | |||
Checking for Open Workbook | Excel Programming |