Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Is there any function in Excel to m

Status
Not open for further replies.

bnageshrao

Programmer
Mar 17, 2001
83
US
Is there any function in Excel to make a date drop down box appear so that users can scroll through the calendar to pick up mm/dd/yyyy.
 
if you have a combobox on a userform:

Private Sub UserForm_Initialize()
Dim i As Double
Dim StartDate, EndDate As Date
StartDate = DateSerial(2001, 1, 1): EndDate = DateSerial(2001, 6, 1)
For i = Int(StartDate) To Int(EndDate)
ComboBox1.AddItem Format(i, "mm\/dd\/yyyy")
Next i
End Sub

ide (-:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top