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

rx123

New Member
Joined
Jul 21, 2016
Messages
1
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 -> sum(column2) [Sheet MyData]
class 2 needs pivot on column1 and column3 -> sum(column3) [Sheet MyData]
class 3 needs pivot on column1 and column4 -> sum(column4) [Sheet MyData]

From the pivot tables, charts need to be created.
Chart only for the option selected.
All the charts in one sheet called (MyChart)

-Also, records are added from time to time,infact everyday. so it should work with changing data and update pivot tables and chart.

I'm extremely new to VB and have seen the forum, tried lot of macros, recording them. It isn't working.

Also, I am working on Excel 2010.
Pls help
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.

Forum statistics

Threads
1,216,045
Messages
6,128,484
Members
449,455
Latest member
jesski

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