ThrottleWorks
Excel Ninja
Hi,
I am using below mentioned code to change range of Pivot table.
This code is working fine at my machine, when tried at another machine code is giving bug.
Worksheet name, pivot table name is same on both the files, range is valid, still it is giving error as object type error. I am not able to understand the reason.
What should I check further to identify this issue.
Can anyone please help me in this.
I am using below mentioned code to change range of Pivot table.
This code is working fine at my machine, when tried at another machine code is giving bug.
Worksheet name, pivot table name is same on both the files, range is valid, still it is giving error as object type error. I am not able to understand the reason.
What should I check further to identify this issue.
Can anyone please help me in this.
Code:
Sht6.PivotTables("PivotTable7").ChangePivotCache ActiveWorkbook. _
PivotCaches.Create(SourceType:=xlDatabase, SourceData:= rng10, Version:=xlPivotTableVersion10)