Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Facebook Sign In with Google Sign In with OpenID

Categories

We have migrated to a new platform! Please note that you will need to reset your password to log in (your credentials are still in-tact though). Please contact lee@programmersheaven.com if you have questions.
Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

VBA and Pivot Tables

palphapalpha Posts: 4Member
I have a worksheet containing seven pivot tables. A VBA macro then takes the results from the PT and carries out other operations. The worksheet was created using Excel 2002. I now find that the worksheet will not work using Excel 2007 because the pivot table is not compatible. I have seen somewhere VBA code that will carry out the same function as a pivot table; in this case to count the number of unique numbers in one column (column A) and add the numbers in the adjacent column (column B).

A B The result here would be 100 x 8
100 6 200 x 5 and 300 x 4
200 4 The number count is 3
100 2
300 4
200 1

There is no problem with code that will place the result in another part of the worksheet then the macro can work on it later.

Thanks in advance
Peter
Sign In or Register to comment.