Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

creating multiple questions

Forum home » Delegate support and help forum » Microsoft Excel VBA Training and help » Creating multiple questions

Creating multiple questions

ResolvedVersion 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 courses

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
What does 'Resolved' mean?

Any suggestions, questions or comments? Please post in the Improve the forum thread.

Excel tip:

Wrapping Text in a Cell in an Excel 2010 Workbook

When you have a lot of text you want to put in a particular cell but you can't decrease the font size to fit because the text will then become ineligible, then manually wrap the text in a cell by simply pressing ALT+ENTER.

View all Excel hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.09 secs.