Macro to select Date field in Pivot table

ccofmars

New Member
Joined
May 20, 2010
Messages
44
Hi I am using Excel 2010. My level of VBA is below novice and I need some help creating a macro that will prompt a message box asking to type of date and that consequently only select the date in the pivot table.

It is an attendance report that I am building.
I have already created a button that prompts a macro to refresh the pivot.
Now I already created a button but I need a macro that will prompt the user to type of date, and the pivot will only show the employees that are present on that date.

please help!:pray::pray:

I thank you in advance.
Chantal
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
Do you know how pivot filters work? Try dragging the date field into the filters box on the pivot table editor. If you really want this functionality done with a button and macro, I can help you do that. I just want to make sure you know that it could already be built in.
 
Upvote 0
Ncalenti

thank you for your reply. Yes I know how to use and manipulate pivot tables, however my employees do not. So I am trying to make it as easy and user friendly as possible, which is why I want to use a macro (by pressing a button on the worksheet).

your help is greatly appreciated.

Chantal
 
Upvote 0

Forum statistics

Threads
1,224,599
Messages
6,179,827
Members
452,946
Latest member
JoseDavid

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