Tech Support Guy banner
Status
Not open for further replies.
1 - 4 of 4 Posts

· Registered
Joined
·
84 Posts
Discussion Starter · #1 ·
I Have done a form that when it is run it asks for the date, What i want it to do when the date is entered is have the date that was entered put into a cell on a worksheet, How do i get it to do that.

Thanks

Ian
 

· Registered
Joined
·
227 Posts
Hi Ian,

Without knowing how the date is selected on your form, it's difficult to answer your question. Does the user type the date into a textbox? Or select it from a drop-down menu?

I usually have three separate drop-downs on my userforms for date selection. Combobox1 contains year, Combobox2 contains month, and Combobox3 contains day. Then I have a commandbutton at the bottom of the form. To enter my data onto a cell in the worksheet, I do this:

Sub CommandButton4_Click
Sheet1.Range("A1").Value = UserForm1.Combobox2.Value & "/" & UserForm1.Combobox3.Value & "/" & UserForm1.Combobox1.Value
End Sub

Let us know if you need more help.
 
1 - 4 of 4 Posts
Status
Not open for further replies.
Top