98.7% Of all customers recommend us, we're so confident about our results we publish all reviews and stats
View Live Stats View ReviewsForum home » Delegate support and help forum » Microsoft Excel VBA Training and help » Creating multiple questions
Creating multiple questions
Resolved · Medium Priority · Version 2003
Rekha has attended:
Excel VBA Intro Intermediate course
Creating multiple questions
What is the most efficient way to create multiple Pivot tables using the least amount of memory?
RE: creating multiple questions
Hi Rekha
The best way to do this in VBA is to write the code to create a pivot table.
1. In the code, the lines that move the fields onto the pivot table would refer to variables (eg strRowField and strColumnField)
2. You would then create a form with either text boxes or combo boxes. (one each for Page, Row, Column, Data)
When you select the relevant fields and click OK the names are sent to the variables. The system then deletes the old sheet holding the pivot table or creates a completely new on if needed. The Pivot table macro is then run using the information in the variables to set the pivot table fields.
Hope this helps
Carlos
Mon 29 Jun 2009: Automatically marked as resolved.
Training information:
Welcome. Please choose your application (eg. Excel) and then post your question. Our Microsoft Qualified trainers will then respond within 24 hours (working days). Frequently Asked Questions
Any suggestions, questions or comments? Please post in the Improve the forum thread. |
Excel tip:Changing the Tab Colour of an Excel 2010 WorksheetDid you know you could give the tabs in your worksheet different colours? |