Date Combo Boxes

bcolvey

New Member
Joined
Jul 23, 2002
Messages
3
I'm attempting to build a spreadsheet that will have approximately 20 dates inputted over a course of a month. IS there an easy way to build a combo box that when clicked will open up a calender for easy access to the current date? Or can something else be done for a single click to input dates rather then have to type in each date. Any help appreciated.

Brad
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
You can use Data Validation|List.

_________________
Hope this helps.
Kind regards,<font size="5"><sup><span style="text-decoration: overline">AL</span></sup><u><sub>CHARA</sub></u></font>
This message was edited by Al Chara on 2002-07-24 12:17
 
Upvote 0
Open the control toobox and select the more controls button (looks like a hammer and wrench symbol). From this list choose Calendar Control and then "draw" the calendar on your sheet. When you get the calendar on your sheet, right click it and select view code. Then enter this code.

Private Sub Calendar1_Click()
ActiveCell.Value = Calendar1.Value
End Sub

Now when you click on the calendar, that date will go to whatever cell is selected.

Dave
 
Upvote 0

Forum statistics

Threads
1,213,497
Messages
6,114,002
Members
448,543
Latest member
MartinLarkin

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