create pivot table in vba

  1. S

    Excel VBA Error 9 with PivotTables

    Hello, I recorded a macro to create and setup a pivottable from Sheet "Tags" to Sheet "Flt Hours". When I ran the recorded macro, I got a message saying Error 9: subscript out of range. The highlighted code is: ActiveWorkbook.Worksheets("Flt Hrs").PivotTables("PivotTable1").PivotCache. _...
  2. A

    Help with VBA createpivottable code!!!

    Hi Everyone, I am working with the code below but am getting an "Invaild procedure call or argument" error on the code in red. I have tried everything I know with no luck. Can anyone help????? Thanks Allen Sub ErrorReportingCreatePivotTableTake1() ' '...
  3. A

    VBA, creating a pivot table on a new sheet

    Hi Everyone, I am trying to get my VBA code to create a pivot table off of a defined pivotcache, and to open it in a new window. I am working out of MrExcel's VBA book, but I just cannot get it to work. Here is my code which is an adapted version of what's in the book. I am getting a...
  4. D

    Bloated Macro Creates Pivot Table

    Hi, this is the first time I've created pivot tables in VBA. I started the code below by adapting a recorded macro. It runs, but I suspect it still has unnecessary, redundant, or ineficient bits since it came from the recorder. Can you help me put it on a diet so to speak, for educational...

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