Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to get top 10 in pivot table

Status
Not open for further replies.

corneI

Programmer
May 5, 2003
18
ZA
Hi all.

Is it at all possible to get only the top 10 in a pivot table using VBA? Any ideas how to do it?

Corne'
#-)
 
This is from the help file:

ActiveSheet.PivotTables("Pivot1").PivotFields("Company") _
.AutoShow xlAutomatic, xlTop, 2, "Sum of Sales"
where xlTop and 2 mean "show 2 top values"

combo
 
Thanks a lot

Sorry for wasting your time
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top