J
JC
Hey all,
I have a tricky one here...
I'm running an access db that outputs data to excel in different tabs.
Before it outputs the data, it needs to check to see if a tab exists with a
certain name, if not it needs to create one with that name.
I'm running into a tricky problem where I can't seem to find a good way to
tell if the sheet exists or not.
The most common solution I've seen on the 'net involves using an "OnError
Goto 0" kind of solution. This only works if you have the setting for
Error-Breaking set to "Break on all unhandled errors". Unfortunately, the db
has to remain set at "Break on all errors", so it never hits that particular
code.
Any other ideas on how to find if the sheet exists?
Thanks in advance,
- JC
I have a tricky one here...
I'm running an access db that outputs data to excel in different tabs.
Before it outputs the data, it needs to check to see if a tab exists with a
certain name, if not it needs to create one with that name.
I'm running into a tricky problem where I can't seem to find a good way to
tell if the sheet exists or not.
The most common solution I've seen on the 'net involves using an "OnError
Goto 0" kind of solution. This only works if you have the setting for
Error-Breaking set to "Break on all unhandled errors". Unfortunately, the db
has to remain set at "Break on all errors", so it never hits that particular
code.
Any other ideas on how to find if the sheet exists?
Thanks in advance,
- JC