dtpicker to display current date when form opens

R

ron mann

I have a DT picker in a userform. I would like it to display the current date
on opening.

Your assistance with this would be much appreciated.
 
D

Dave Peterson

I don't know what date picker you're using, but maybe...

Option Explicit
Private Sub UserForm_Initialize()
Me.Calendar1.Value = Date
End Sub
 
R

ron mann

Hi Dave,

I am using DT picker and the suggested initialisation has worked a treat.

Many thanks to you.

Cheers

Ron
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top