Pivot Table

L

lab-guy

I'm doing a pivot table with multiple ranges, as suggested here in the group.
Works well for 4 sheets, but I'll probably have 40.

Would it be possible to do a 3d formula to catch every sheet in the workbook,
instead of listing each sheet in the pivot wizard ?

Thanks much

Mike
 
R

ryguy7272

This should give you a couple of ideas:

Dim sh As Worksheet
For Each sh In ThisWorkbook.Worksheets
'Whatever operation you want to perform on each sheet, Pivot Table refresh,
or whatever, do it here.
Next sh


For Each ws In ActiveWorkbook.Worksheets
'Same concept as above
Next


Regards,
Ryan---
 

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

Top