creating multiple questions

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

Creating multiple questions

resolvedResolved · 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 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:

Changing the Tab Colour of an Excel 2010 Worksheet

Did you know you could give the tabs in your worksheet different colours?

This is particularly useful when organizing all your worksheets relating to a particular period or year, for example.

Right click a tab
Select Tab Colour
And choose your favourite colour!

View all Excel hints and tips


Server loaded in 0.06 secs.