MartinS
Active Member
- Joined
- Jun 17, 2003
- Messages
- 490
- Office Version
- 365
- Platform
- Windows
OK, so my task is to write a 'tool' that the user can specify the location of two workbooks in a specific format. The first was the 'original' run (1), the second the same but at an 'updated position' (2), so improvements due to data cleansing etc.
Each workbook with have the same tabs, and on two tabs specifically, 6 pivot tables (on each sheet) which summarise the source data. So between (1) and (2) there will be differences. It is almost guaranteed that the tables will differ in size between the 2 workbooks, so i can't just compare cell to cell in each pivot table.
Can anyone suggest some ideas on how to go about comparing pivot tables? Ideally I'd like to load the contents of each pivot table into memory (I can't figure out quite how to do this) and then loop through it and check that it's the same field/item before comparing. The results needs to show 6 tables (for each comparison) showing the differences between (1) and (2), so the final table should contain all the fields and items found in both (1) and (2).
I've had a good think, and have done some googling, but can't get me head around how this can be done. If not working in memory is a better approach, am happy to consider that too.
Thanks in advance
Martin
Each workbook with have the same tabs, and on two tabs specifically, 6 pivot tables (on each sheet) which summarise the source data. So between (1) and (2) there will be differences. It is almost guaranteed that the tables will differ in size between the 2 workbooks, so i can't just compare cell to cell in each pivot table.
Can anyone suggest some ideas on how to go about comparing pivot tables? Ideally I'd like to load the contents of each pivot table into memory (I can't figure out quite how to do this) and then loop through it and check that it's the same field/item before comparing. The results needs to show 6 tables (for each comparison) showing the differences between (1) and (2), so the final table should contain all the fields and items found in both (1) and (2).
I've had a good think, and have done some googling, but can't get me head around how this can be done. If not working in memory is a better approach, am happy to consider that too.
Thanks in advance
Martin