vba pivot tables

  1. M

    VBA Dynamic pivot table field names

    What is the proper code if the title of your columns change? I am working on a manufacturing capacity outlook file that changes weekly. I need to have my column names in my pivot table change to the upcoming weeks. So instead of: ActiveSheet.PivotTables(“PivotTable5”).AddDataField...
  2. B

    VBA for Pivot Tables

    Hope no one minds, I recreated this post with a better title, since I was getting no responses. I need to quickly change which field is listed in the Values area of a pivot table. My current method is to drag the field out of the values area, drag the new field into the values area, right...
  3. C

    VBA Pivot table variable

    Hi I have the below code to create a pivot table and have set the pivot table as the variable, PT: Dim WB As Workbook Dim WS As Worksheet Dim WSsb As Worksheet Dim FinalRow As Long Dim FinalCol As Integer Dim PRange As Range Dim PTCache As PivotCache Dim PT As PivotTable Dim PF As PivotField...
  4. P

    help with the following vba code

    Hi- I keep getting the error "for without next" on this code: The code essentially exports a number of sheets from a workbook along with the raw (hardcoded data and saves. What I'm trying to do is change the pivot source of each pivot within the sheet. I think I'm not too far away from...
  5. P

    vba to export and change pivot source loop

    Hi, I have the following which is designed to export sheets from a workbook along with raw data (hardcoded data) and save them.. What I would like is to change the pivot source in each of the newly exported sheets... Ideally it would change the source prior to saving.. I would like the new...
  6. C

    Pivot Table Macro

    I am building a workbook for workers to use, to easily cut/paste a report into, and auto generate the work that has a due date of <!--= today, (macro to sort data, and put into new sheet). I built a pivot table macro, for them to use (work presents easier for task work), but I am not sure where...
  7. S

    Using VBA to name the ranges within a PivotTable

    Hi, My Excel sheets need to have a number of conditional drop down lists. To do this I currently use a fairly lengthy process of =INDIRECT formulas with Data Validation. I want to start using PivotTables more but I wish that each filed within a PivotTable was a named range that would update...
  8. A

    VBA - Pivot Tables - isolating categories

    Hey, I'm working on a bunch of pivots using VBA. I need to isolate "Bermuda" in a list of countries and am looking for an easier way to isolate. The list is going to get a lot longer and removing fields individually definitely can't be a solution. Also with Visible=False process, after a bunch...
  9. T

    VBA Code to Update Pivot Table Filters

    I am trying to update multiple pivot table fields based on values given in a reference tab. The pivot tables I am using are linked to an OLAP query and I can not seem to find a way to get the data to pull from cells in another tab. Do you know how I can update the cells in the reference tab...
  10. W

    PivotTable field name is not valid????

    Anyone seen this? Run-Time Error 1004? I want to name the pivot tables so they are consistant and macro errors out. How would I fix? Code: ' Turn off screen updating so the macro will run quicker Application.ScreenUpdating = False ' Turn off auto re-calculation...

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