VBA

Moderators: PavlinII
Number of threads: 1673
Number of posts: 3078

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
VBA and Pivot Tables Posted by palpha on 21 Mar 2009 at 10:26 PM
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



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.