DTPicker Default value

K

kj135

I've created a macro in Excel 2003 and I'm using DTPicker for the user to
select the date and time. For some reason the date and time defaults to when
the macro was written. How do I tell it to default to Now?

I've tried "DTPicker1.Value = Now", but for some reason it does not work.

Thanks inadvance for your help.

Steve
 
K

kj135

Thanks for the help, but that did not work, maybe I'll try some other way to
input the date.
 
A

Allen Geddes

It works for me when I put it under UserForm_Initialize()

ex:

Private Sub UserForm_Initialize()
DTPicker1.Value = Now
End Sub
 

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