Pivot table creation using VBA

Skip77

New Member
Joined
Nov 8, 2010
Messages
7
Hello,
I am hoping to get some much needed assistance with automating a pivot table creation process I use each week. Each week I need to create a report showing the activity for the week previous. Using a database output (and much help from this forum :) ) I am able to macro the preparation process all the way up to creating a pivot table. I have tried using the macro recorder to do this but it does not work when I run the pivot table macro created via the recorder. I am hoping to be able to try coding the pivot table without using the recorder. The source data table for the pivot table is named data. What I would like to be able to do is:

1) In the filter box, select the days for the current week from the date field (the current week goes from Monday to Sunday (i.e.-6.6-6.12)

2) In the Row labels box, place a field called TypeofEvent

3) In the count box, place the TypeofEvent

I greatly appreciate any help that may be provided.

Take Care,

Skip
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop

Forum statistics

Threads
1,224,514
Messages
6,179,225
Members
452,896
Latest member
IGT

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