ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   MS Date Time Picker 6.0 question (https://www.excelbanter.com/excel-programming/437782-ms-date-time-picker-6-0-question.html)

Robert Crandal

MS Date Time Picker 6.0 question
 
Just wondering, is it safe to assume that the
Microsoft Date/Time Picker 6.0 Control will
always start up with the current date???



Rick Rothstein

MS Date Time Picker 6.0 question
 
I believe so, but the documentation doesn't mention it. To be sure, though,
you can just assign the date to it in the UserForm's Initialize event...

DTPicker1.Value = Date

--
Rick (MVP - Excel)


"Robert Crandal" wrote in message
...
Just wondering, is it safe to assume that the
Microsoft Date/Time Picker 6.0 Control will
always start up with the current date???




Gord Dibben

MS Date Time Picker 6.0 question
 
I think it will start up with whatever date is set in propertiesvalue

To make sure it is always current date and formatted as you like.

Private Sub UserForm_Initialize()
Calendar1.Value = Format(Date, "dd-mmm-yy")
End Sub


Gord Dibben MS Excel MVP

On Fri, 25 Dec 2009 01:36:38 -0700, "Robert Crandal"
wrote:

Just wondering, is it safe to assume that the
Microsoft Date/Time Picker 6.0 Control will
always start up with the current date???




All times are GMT +1. The time now is 04:04 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com