dgsbsme
Mechanical
- Mar 9, 2005
- 39
I need to be able to print (via VBA on a custom tool button) all sheets in a workbook, EXCEPT the first 2 sheets.
I can make it count the total number of sheets and tried to use:
Dim tabcount As Integer
tabcount = ThisWorkbook.Worksheets.Count
Worksheets(Array(2 - tabcount)).Select
Thinking that Array(2 - tabcount) would be 2 THRU tabcount... not so apparently.
Neither did Array(2 :: tabcount) or Array(2 : tabcount) work.
I'm stuck now. Anyone know how to make it do what I want?
I can make it count the total number of sheets and tried to use:
Dim tabcount As Integer
tabcount = ThisWorkbook.Worksheets.Count
Worksheets(Array(2 - tabcount)).Select
Thinking that Array(2 - tabcount) would be 2 THRU tabcount... not so apparently.
Neither did Array(2 :: tabcount) or Array(2 : tabcount) work.
I'm stuck now. Anyone know how to make it do what I want?