Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I'm trying to reference an Excel spreadsheet that may not exist at the time
of the test, like this: xlApp.WorkSheets("Test").Select I would like to test if the "Test" sheet exist before selecting it. How to do it in VBScript? I tried this: IsObject(xlApp.WorkSheets("Test")), but it only worked if "Test" existed, it gave me an error when it didn't. Thanks a bunch, JP |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Test if file exists | Excel Discussion (Misc queries) | |||
Test for Worksheet Exists | Excel Programming | |||
Opening excel spreadsheet from within a VBscript | Excel Programming | |||
Test if a folder exists | Excel Programming | |||
VBScript Automation of Excel Spreadsheet Sorting & Filtering | Excel Programming |