Pivot Table Worksheets

  • Thread starter Thread starter Lambtwo
  • Start date Start date
L

Lambtwo

My workbook creates a series of worksheets (for each division) from a pivot
table. In addition, there are 3 data worksheets that follow the pivot table
created worksheets.

I want to run a macro on the pivot worksheets only (not the last 3 data
sheets). Fumbling around with the For Each and trying to exclude the last 3,
but can't seem to make this work.

Help please ...
 
Possibly:

for i = 1 to sheets.count - 3
set sh = sheets(i)
Next

or something similar.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top