Set Date Picker Control to current date

P

Patrickw

I have tried code in the userform initialize routine as follows:

DTEPicker.Value = Date

and

DTEPicker.Value=Date$

Neither works to set the date first displayed in the date control to
the current system date.
 
D

Doug Robbins - Word MVP

On my system, the current system date appears as the selected date without
the need for any code.

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP, originally posted via msnews.microsoft.com
 
P

Patrickw

I'm using the Microsoft Date and Time Picker Control, Version 6.0

It requires a value in the properties
 
G

Graham Mayor

Patrickw said:
I'm using the Microsoft Date and Time Picker Control, Version 6.0

It requires a value in the properties

Which is inserted by default

--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP


<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 
P

Patrickw

Is there a better simple date/time control to use that I can install
on all my Word 2003 and Word 2007 machines?
 
S

Steve

I was having the same problem. I figured out it was because I have the date
picker invsible when my userform opens. I set it to visible, change the date
to current date, then make it invisible again and it works fine. You should
check that on yours and also check if the form where it is located is the
active form when you make the call to change the date. It seems the date
picker is very picky (no pun intended).
 

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