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

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
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,223,897
Messages
6,175,270
Members
452,628
Latest member
dd2

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