|
-
Nov 22nd, 2000, 05:29 PM
#1
Thread Starter
Junior Member
I can open an Excel file no problem.
I can activate a specific tab in the Excel file no problem.
I want to check for the tabs existence before I try to activate it to prevent an error occuring.
Does any body know the correct syntax?
The following works (unless the tab called 'Test Tab' does not exist);
Worksheets("Test Tab").Activate
Thanks
Graham.
-
Nov 23rd, 2000, 12:04 AM
#2
Fanatic Member
this will read all you tab sheet...
code:=======================================
Dim strSheet As Worksheet
For Each strSheet In Worksheets
MsgBox strSheet.Name
Next
-
Nov 24th, 2000, 06:07 PM
#3
Thread Starter
Junior Member
Thanks Knight.
Excellent.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|