Pivot Error showing but on a different macro Sheet. Not on the sheet the where I refreshed

Devonair

New Member
Joined
Apr 17, 2019
Messages
26
Hi,

This is my first time. I have been looking everywhere for a solution for this
I have made a pivot table on Sheet4 and named the Pivot table to Overtime.
But when I refresh manually by right click the newly made pivot table stops and shows an error

------------------
Run-time Error '1004':

Unable to get the PivotTables property of the Worksheet Class
------------------

When I click Debug the error goes to my sheet3 Not in sheet4 and points to this different Pivot table I made previously

Sub RefreshCustomPivotTable2()
Application.DisplayAlerts = False
With ActiveSheet
.PivotTables("WBS_Pivot").RefreshTable <- this one has the error pointed at
End With
End Sub

Its not the pivot table I refreshed, and not even at the same sheet.

Can anybody help me on this issue. I am using Excel 2013 by the way.

Lots of thanks guys
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
The Pivottable on Sheet 4 is called Pivottable1.
I can't find a pivot table called WBS_Pivot !!!
 
Upvote 0
The Pivottable on Sheet 4 is called Pivottable1.
I can't find a pivot table called WBS_Pivot !!!


the WBS_Pivot is in Sheet3, name Report 02 at the tab of the workbook.


Thanks for you help and concern, after trying to find the solution I think I stumble on the answer.
after creating the 3rd pivot table. It automatically shares pivot catche with the 2nd. I still don't know much about it
but it seems it auto links itself to the 2nd pivot table, he suggested to use Alt + D and P instead of making another Pivot table from the tool bar directly.

Its weird why would excel do that.
 
Upvote 0

Forum statistics

Threads
1,223,909
Messages
6,175,310
Members
452,634
Latest member
cpostell

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top