creating multiple questions
The UK's Number 1 for Microsoft Office Training Add this page to your favourites/bookmarksBookmark page
 
View printable version of pagePrintable version
Plus One Google
Customer: Sign in
Delegate: Sign in
Trainer: Log in

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

Creating multiple questions

resolvedResolved · Medium Priority · Version 2003

replyReply Fri 19 Jun 2009, 16:36Delegate Rekha said...

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?

For upcoming training course dates see: Pricing & availability

replyReply Mon 22 Jun 2009, 11:47Trainer Carlos said...

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.

 

Please browse our web site to find out more about
excel+courses and other Microsoft training courses.

Excel tip:

Hiding Formulae in the Formula Bar

It is possible to protect the contents of a cell reference(s) from amendment by applying cell protection. The contents of the cell reference can also be stopped from displaying in the formula bar.

Step 1: Select Format > Cells > Protection.

Step 2: Tick Hidden option. Ensure Locked is ticked

Step 3: Select Tools > Protection > Protect Sheet

(Ensure "Protect worksheet and contents of locked cells" is ticked)


View all Excel hints and tips


Microsoft Certified Partner Accredited Training Provider: Institute of IT Training Institute of Leadership and Management - Certified Courses Security Seal verified by visa, mastercard securecard