I use pivot table in one worksheet to populate values in a table in another sheet thru VBA code. A strange problem is happening
The code works well & populates the table by reading pivot table. When 'ClearTable' is used to clear the pivot table, it clears the pivot but it is changing the format of table another sheet. Can the experts advise why this strange problem is happening & how to resolve it?
For example -
- Pivot table - Sheet 1 - text format - times new roman, 11
- Project table - Sheet 2 - text format - calibri, 9
VBA code correctly copies value from pivot table in sheet 1 to project table in sheet 2. Text format of project table is not changed (still calibri, 9). But when 'ClearTable' is done on pivot table in sheet 1, it is changing the format of project table in sheet 2 (times new roman, 11).
For example -
- Pivot table - Sheet 1 - text format - times new roman, 11
- Project table - Sheet 2 - text format - calibri, 9
VBA code correctly copies value from pivot table in sheet 1 to project table in sheet 2. Text format of project table is not changed (still calibri, 9). But when 'ClearTable' is done on pivot table in sheet 1, it is changing the format of project table in sheet 2 (times new roman, 11).