wkSheet.PivotTables("PivotTable1").PivotCache.Refresh;
1. Only assignment, call, increment, decrement, and new object expressions can be used as a statement 2. 'object' does not contain a definition for 'PivotCache' and no extension method 'PivotCache' accepting a first argument of type 'object' could be found (are you missing a using directive or an assembly reference?)
PivotTable pvtTable = (PivotTable)wkSheet.PivotTables("PivotTable1"); pvtTable.RefreshTable();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)