defining output range
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 » Defining output range

Defining output range

resolvedResolved · Low Priority · Version 2003

replyReply Fri 13 Mar 2009, 16:08Delegate Blair said...

Blair has attended:
Excel Advanced course
Excel VBA Intro Intermediate course

Defining output range

Can you tell me how to use a form to ask a user to input which variable they would like a pivot table to provide. That is, one user could ask how much saleperson A sold in 2005, with another asking how much salesperson B sold in 2007, with all being user input.
Thanks

For upcoming training course dates see: Pricing & availability

replyReply Mon 16 Mar 2009, 14:41Trainer Carlos said...

RE: defining output range

Hi Blair

To do this you would need to do the following:

1. Create the form with the required input methods (Text box or Combo box) to enter the fields to be displayed on the pivot table

2. In the program's module create Public variables to hold the information entered on the form

3. Write the Pivot table code using the variables in the PivotFields code lines

4. Place an OK buton on the form that when clicked passes the information entered to the variables and runs the Pivot Table code to create a Pivot table to reflect the requirements.

Hope this helps

Carlos

Mon 23 Mar 2009: Automatically marked as resolved.

 

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

Excel tip:

Quick Absolute Cell References

When entering cell references in a formula you probably click the cell, or you may type in the cell reference. If you require any of the 4 variations, press the F4 key now before you press Enter to toggle around the relative and absolute entries ($signs).

Note that the F4 key outside of editing a formula is the Repeat key to repeat a previous action.

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