Prompt User to Select Date from Dropdown List

GeneralShamu

Board Regular
Joined
Jul 6, 2007
Messages
127
I have a macro that does a ton of things on a data set. This dataset is massive and I need to run the macro on a user-specified day.

How can I prompt the user for this?

To minimize user error I want it to have three dropdowns:
"Month"
containing: Jan, Feb, ... Dec

"Day"
containing: 1, 2, ..., 31

"Year"
containing: 2014, 2013, 2012, 2011, 2010, 2009, 2008

Is there a way a prompt could come up after this asking the user to confirm the date they selected...if they say "No" then go back and change it and if they say "Yes" then proceed.
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
Sounds like you need to use a UserForm from the VBA Screen.

You can add drop downs (combo box) x 3 to give you day number month name and year and then a command button to trigger the event base on the date selected.
 
Upvote 0

Forum statistics

Threads
1,215,048
Messages
6,122,862
Members
449,097
Latest member
dbomb1414

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