Pivot Table

psamu

Active Member
Joined
Jan 3, 2007
Messages
462
I would appreciate if someone help me, I have pivot table in Sheet1 and below code works fine,
ActiveSheet.PivotTables("PivotTable3").PivotFields("Fiscal Year").CurrentPage = Range("E4").Text

but when I put second pivot table in Sheet2 and I have below code, it gives me error.


Sheet2.Select PivotTables("PivotTable5").PivotFields("Fiscal Year").Sheet2 = Range Sheet1.("E4").Text


Based on report filter sheet 1 Pivot table on sheet 2 report filter need to change. thanks
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
Is it?

Code:
Sheet2.PivotTables("PivotTable5").PivotFields("Fiscal Year").CurrentPage = Sheet1.Range("E4").Text
 
Upvote 0

Forum statistics

Threads
1,203,096
Messages
6,053,516
Members
444,669
Latest member
Renarian

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