Link to home
Start Free TrialLog in
Avatar of tesla764
tesla764

asked on

Excel - Hide a tab in the workbook without hiding the functionality.

Hide a tab in the workbook without hiding the functionality.

When I hide the tab called "Country Category Table" then run the program i get...
Error: Select method of Worksheet class failed.

Is there a way to keep all the functionality and just not have the tab "Country Category Table" appear?

Thanks in advance for your help.
SOLUTION
Avatar of Rgonzo1971
Rgonzo1971

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of tesla764
tesla764

ASKER

No. But when the sheet is hidden the code bombs.
What i meant is

you should get rid of the select like that

Worksheets("Test3").Range("A1").Value = 1

Open in new window

instead of
Worksheets("Test3").Select
Range("A1").Value = 1

Open in new window

Regards
I will give that a try. It may have to wait until Monday. It's getting late in the day and I have a few other things to do before I go today. I will let you know.
Thanks.
I will be able to try this on Monday.
Thanks and have a great weekend.
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial