Hello,
I'm trying to automatically set the current year and next year in a pivot table using VBA. This is what I have currently
Dim CurrentYear as Variant
Dim NextYear as Variant
CurrentYear = Year(Now())
NextYear = Year (Now())+1
With ActiveSheet.PivotTables("PivotTable1").PivotFields("YR")...
I am trying to insert value fields into an existing pivot table with a macro. I want the type of field (sum, count etc), to be specified in a user form (just a named range in a worksheet) and then added to the pivot. How can I do this?
Thanks.
Hi!
I have 2 pivot tables called:
in sheet "AKTUALNIE" the name of the pivot = "Tabela przestawna4"
in sheet "Arkusz1" the name of the pivot = "Tabela przestawna2"
screens:
http://i.imgur.com/TTbYatI.png?1
http://i.imgur.com/2HHwUjH.png?1
What i want to achieve is to make macro wich whenever...
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.