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

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
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,214,896
Messages
6,122,132
Members
449,066
Latest member
Andyg666

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