troubleshooting Question

Select the topmost value in a data field of a pivot table using VBA

Avatar of Andreas Hermle
Andreas HermleFlag for Germany asked on
Microsoft OfficeMicrosoft ExcelVBA
6 Comments1 Solution15 ViewsLast Modified:
Dear Experts:

I got a simple Pivot Table on the active Worksheet named 'PT_Sales'.

 One row filed named country and one column field named Years (2020 and 2021).
The 2021 values are shown as difference from the previous year.

For some specific reason I would like to select the first value of the data field (item 2021) by means of VBA irrespective which country is shown at the top.

Help is very much appreciated.

Thank you very much in advance.

Regards, Andreas


Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 6 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 6 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros