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 » Pivot Tables
Pivot Tables
Resolved · Low Priority · Version 2003
Allister has attended:
Excel VBA Intro Intermediate course
Pivot Tables
How do select an extra columns for your pivot table within your VBA code?
RE: Pivot Tables
Hi Allister
To display extra data on a pivot tables column area you just add an extra field and the the fields positions. For Example:
.PivotFields("Salesperson").Orientation = xlColumnField
.PivotFields("Salesperson").Position = 1
.PivotFields("Make").Orientation = xlColumnField
.PivotFields("Make").Position = 2
Hope this helps
Carlos
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:Sorting List SubtotalsIf you find that you would prefer to show the items in a subtotalled list in a different order, eg ascending rather than descending, you can sort your list. To sort a subtotalled list, hide the detail rows and then sort the subtotal rows. When you sort a subtotalled list, the hidden detail rows are automatically moved with the subtotal rows. |