Ark68
Well-known Member
- Joined
- Mar 23, 2004
- Messages
- 4,435
- Office Version
-
- 365
- 2016
- Platform
-
- Windows
I have made a Pivot Table on worksheet "CRITERIA"
As part of my code, I call to refresh that Pivot Table because it's contents are based on a dynamic dataset.
I am getting an error : "The PivotTable field name is not valid. ..." with line
The dataset does have a valid column header for which the PivotTable uses to base it's count. Could it have something to do with the dataset having been "re-drawn" in a previous sub (importing the data from an external sopurce)?
How can I eliminate this error and have my PivotTable update it's values?
Jenn
As part of my code, I call to refresh that Pivot Table because it's contents are based on a dynamic dataset.
I am getting an error : "The PivotTable field name is not valid. ..." with line
Code:
Sheets("CRITERIA").PivotTables("PivotTable1").PivotCache.Refresh
The dataset does have a valid column header for which the PivotTable uses to base it's count. Could it have something to do with the dataset having been "re-drawn" in a previous sub (importing the data from an external sopurce)?
How can I eliminate this error and have my PivotTable update it's values?
Jenn