pivot table by vba

  1. S

    Apply Value Filter to Pivot table using VBA

    I have a list of properties in a Pivot table and want to have it so its like A Real Estate website where you choose between certain price points. Slicers dont really work as there are over 25 price points. I have done some research and there doesnt appear to be a kind of timeline for just values...
  2. M

    Distinct Count in VBA

    Hi all, I am setting up a macro to run a few pivot tables that from a the same data source in a single worksheet. I know how to manually make the pivot table a data model which will enable me to do the function of distinct count in the pivot table. But I have not been able to make that work in...
  3. M

    Macro to update Pivot Source Folder

    Hi, I am looking for a macro to update the data source automatically. This will also mean that the table range will increase with additional rows, sometime additional columns. Each month we receive 2 source data files which I save to our server for the given month. Both data files are saved...
  4. S

    Unable to create Pivot Table by VBA

    Hi, I tried creating the pivot table by VBA code but I failed. Can Anyone please help me??? Sub Pivot_Test() Dim Psheet As Worksheet Dim Dsheet As Worksheet Dim Pcache As PivotCache Dim Ptable As PivotTables Dim Prange As Range Dim Lastrow As Long Dim Lastcol As Long On Error Resume Next...
  5. A

    Change Pivot Table to new range

    I have been trying to tweak this for a long time, and I'm sure there is an easy fix for this, I just haven't figured it out. My goal is to automatically update the Pivot Table based on the new data in the worksheet with Headings on row 5. Any help would be greatly appreciated. Thank You in...
  6. J

    Using Slicers to Alter a Pivot Table

    Hi all. I was wondering if it was possible to alter a Pivot Table based on a Slicer Selection. For instance, I have a pivot table broken out by region. I would like a macro that would add a sub region if the West Region was selected, and City if the North region were selected, but if the...
  7. R

    Create Macro to Creat Pivot Tables (3), data for the three pivot tables from same sheet and then Create Charts for those Pivot tables

    I would want to have a Drop down list with three Options - class 1, class 2, class 3 Based on the Option selected, the macro should create Pivot table for each class.Data for each of the option is available in the same worksheet (MyData) class 1 needs pivot on column1 and column2 ->...
  8. P

    Cell controlled pivot filter

    Hi all, I want to achieve the following: have a pivot table update based on a change in a cell. This cell is being populated based on another cell. I have been trying multiple options for the 'cell controlled pivot filter' over and over. Thought I had it in a test file but when I use it in my...
  9. A

    How to show most recent date in Pivot Table filter field ?

    I just encounter this issue and want to find a solution to auto filter just the most recent date in Pivot Table via VBA. Like I want to set "TIME" column as filter field in Pivot Table. I searched online and modified a little bit to see whether it could work. Here are the codes: Module1: Sub...
  10. C

    Error 1004: Application-defined or Object-defined Error

    Hello I am kind of new in VB and I am trying to control different pivot tables with a combobox, but when I try to do so I receieve the same error that says: "Error 1004: Application-defined or Object-defined Error". This is the code that I am using. Could someone help me to solve this issue? Sub...
  11. R

    Pivot Table Help

    Hi All, Long time reader of this forum but first time posting. I don't normally ask for help as i prefare to read as much as i can to understand coding better.... but for the first time in 8 years of this job i'm close to giving up on trying to work this issue out. What i'm trying to do, i...
  12. A

    Issues with Macro to import data from web, create pivot table & filter it based on a dynamic range

    Hi All, I'm a newbie with VB & macros, i've been recording a macro manually and tried to edit it with bits and pieces that i found on several forums. It does work to a certain extent but i'm hitting several issues. i have a workbook with 3 sheets "NECA ASR Pivot Table", "Install Compliance...

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