Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

"Sheets.Select" won't work if some sheets are hidden...

Status
Not open for further replies.

bodo62

Programmer
Jun 29, 2004
23
SE
Hi.

I've got a workbook with several worksheets and charts. The charts are based on information from hidden worksheets. I need to select all remaining visible sheets (they are worksheets and charts), and from the group of sheets make a setup for page header and footer as well as printing the whole set to specific printer.

I thought Sheets.Select would select all remaining sheets, but it doesn't work because some sheets are hidden.

I tried also Charts.Select and of course this one will work, but there still are 2 visible worksheets that I want to select together with the charts. How could I solve this problem?

Tanks in advance for any bit of help.

 
If the sheets are hidden they can only be accessed by using the Activate method as in Sheets(1).Activate

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top