Setting Default Date in Date Picker

Guard913

Board Regular
Joined
Apr 10, 2016
Messages
144
Office Version
  1. 2016
  2. 2010
Platform
  1. Windows
I have tried the Me.Date_Picker.Value = Value in both worksheet start, userform.intialize tried the Now() with no luck. I have googled this and tried everyway but i keep getting errors....
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
How about
Code:
Private Sub UserForm_Initialize()
Me.[COLOR=#ff0000]DTPicker1 [/COLOR]= Date
End Sub
change value in red to match the name of your DtPicker
 
Upvote 0
I have been trying that for the past 24 hours.... it does not work. Date_Picker is the name of my form. Do I change the name of my form? And where would be best to put this code???? In the form or on the button the starts the form, or on the worksheet itself.....
Private Sub UserForm_Initialize()
Me.
Date_Picker= Date
End Sub
 
Upvote 0
What is the name of the Date Picker control on your form?
 
Upvote 0
its actually lol MonthView1......... never saw that.... :D can you verify the code off of that.....
 
Upvote 0
When i click on the actual calendar its MonthView1 the name of the form is Date_Picker..... never named the calendar....
 
Upvote 0
In that case replace the value in red from post#3 with MonthView1
 
Upvote 0

Forum statistics

Threads
1,215,018
Messages
6,122,703
Members
449,093
Latest member
Mnur

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