Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 191
Default DTpicker number format

When I use DTPicker control to put a date into a cell, it puts the wrong date
in. Do I need to change the number format in the cell or on the control? I
tried

DTPicker1.Value = Format(DTPicker1.Value, "mm/dd/yy")

and that didn't work.
Thanks
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,939
Default DTpicker number format

Why not just set the linked cell property of the control to a cell on the
sheet. Wht the sheet in design mode right click the control and select
Properties. In the Linked Cell property add the cell reference. See if that
fixes your date issue...
--
HTH...

Jim Thomlinson


"ranswrt" wrote:

When I use DTPicker control to put a date into a cell, it puts the wrong date
in. Do I need to change the number format in the cell or on the control? I
tried

DTPicker1.Value = Format(DTPicker1.Value, "mm/dd/yy")

and that didn't work.
Thanks

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default DTpicker number format

Explain what you mean by "wrong date" for us (that is, give us details).

Rick


"ranswrt" wrote in message
...
When I use DTPicker control to put a date into a cell, it puts the wrong
date
in. Do I need to change the number format in the cell or on the control?
I
tried

DTPicker1.Value = Format(DTPicker1.Value, "mm/dd/yy")

and that didn't work.
Thanks


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 191
Default DTpicker number format

The control is on a userform. So I set the date to a variable then use that
to put it into a cell on the worksheet.

"Jim Thomlinson" wrote:

Why not just set the linked cell property of the control to a cell on the
sheet. Wht the sheet in design mode right click the control and select
Properties. In the Linked Cell property add the cell reference. See if that
fixes your date issue...
--
HTH...

Jim Thomlinson


"ranswrt" wrote:

When I use DTPicker control to put a date into a cell, it puts the wrong date
in. Do I need to change the number format in the cell or on the control? I
tried

DTPicker1.Value = Format(DTPicker1.Value, "mm/dd/yy")

and that didn't work.
Thanks

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 191
Default DTpicker number format

When I set the date to 7/28/08 the date when it is put into a cell on the
worksheet is 1/0/1900

"Rick Rothstein (MVP - VB)" wrote:

Explain what you mean by "wrong date" for us (that is, give us details).

Rick


"ranswrt" wrote in message
...
When I use DTPicker control to put a date into a cell, it puts the wrong
date
in. Do I need to change the number format in the cell or on the control?
I
tried

DTPicker1.Value = Format(DTPicker1.Value, "mm/dd/yy")

and that didn't work.
Thanks





  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 191
Default DTpicker number format

I would like the date in mm/dd/yy format if possible.

"ranswrt" wrote:

When I use DTPicker control to put a date into a cell, it puts the wrong date
in. Do I need to change the number format in the cell or on the control? I
tried

DTPicker1.Value = Format(DTPicker1.Value, "mm/dd/yy")

and that didn't work.
Thanks

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
DTPicker Bug Steve23 Excel Programming 0 June 26th 07 11:36 AM
DTpicker kj135 Excel Programming 2 June 1st 07 06:26 PM
DTPicker Syed Haider Ali[_37_] Excel Programming 0 July 11th 06 08:38 PM
set date on dtpicker jocke Excel Discussion (Misc queries) 0 November 29th 05 05:02 PM
Number format based on number format of another cell in another workbook Rob Excel Programming 9 January 9th 05 04:30 PM


All times are GMT +1. The time now is 06:35 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"