Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 84
Default Set date time picker to null (blank)

Hello,

I have a form with a date time picker. I'm using Excel 2007. When the form
opens, my boss wants the date time picker to be blank. I'm not sure if that
is possible and had previously set it to current date. I've tried setting it
to vbNULL. This sets the value at 12/31/1899.

So I thought I would at least ask the group, can you make the date time
picker blank when first opening a form? During data entry, the data entry
person will set the date as appropriate.

Thanks.

Tony
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,939
Default Set date time picker to null (blank)

check out this link...

http://www.microsoft.com/communities...xp=&sloc=en-us
--
HTH...

Jim Thomlinson


"Webtechie" wrote:

Hello,

I have a form with a date time picker. I'm using Excel 2007. When the form
opens, my boss wants the date time picker to be blank. I'm not sure if that
is possible and had previously set it to current date. I've tried setting it
to vbNULL. This sets the value at 12/31/1899.

So I thought I would at least ask the group, can you make the date time
picker blank when first opening a form? During data entry, the data entry
person will set the date as appropriate.

Thanks.

Tony

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,939
Default Set date time picker to null (blank)

Sorry this link is to the correct question...

http://www.microsoft.com/communities...f-ab03d18fbe82
--
HTH...

Jim Thomlinson


"Jim Thomlinson" wrote:

check out this link...

http://www.microsoft.com/communities...xp=&sloc=en-us
--
HTH...

Jim Thomlinson


"Webtechie" wrote:

Hello,

I have a form with a date time picker. I'm using Excel 2007. When the form
opens, my boss wants the date time picker to be blank. I'm not sure if that
is possible and had previously set it to current date. I've tried setting it
to vbNULL. This sets the value at 12/31/1899.

So I thought I would at least ask the group, can you make the date time
picker blank when first opening a form? During data entry, the data entry
person will set the date as appropriate.

Thanks.

Tony

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,298
Default Set date time picker to null (blank)

you tried
DTPicker1.Value = ""


"Webtechie" wrote:

Hello,

I have a form with a date time picker. I'm using Excel 2007. When the form
opens, my boss wants the date time picker to be blank. I'm not sure if that
is possible and had previously set it to current date. I've tried setting it
to vbNULL. This sets the value at 12/31/1899.

So I thought I would at least ask the group, can you make the date time
picker blank when first opening a form? During data entry, the data entry
person will set the date as appropriate.

Thanks.

Tony

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 84
Default Set date time picker to null (blank)

You will get an error message if you set it to "".

"Patrick Molloy" wrote:

you tried
DTPicker1.Value = ""


"Webtechie" wrote:

Hello,

I have a form with a date time picker. I'm using Excel 2007. When the form
opens, my boss wants the date time picker to be blank. I'm not sure if that
is possible and had previously set it to current date. I've tried setting it
to vbNULL. This sets the value at 12/31/1899.

So I thought I would at least ask the group, can you make the date time
picker blank when first opening a form? During data entry, the data entry
person will set the date as appropriate.

Thanks.

Tony



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 84
Default Set date time picker to null (blank)

That is the link I used to set it to vbNull. However, setting it to vbNull
sets the date time picker to 12/31/1899. It is not null or blank.

"Jim Thomlinson" wrote:

Sorry this link is to the correct question...

http://www.microsoft.com/communities...f-ab03d18fbe82
--
HTH...

Jim Thomlinson


"Jim Thomlinson" wrote:

check out this link...

http://www.microsoft.com/communities...xp=&sloc=en-us
--
HTH...

Jim Thomlinson


"Webtechie" wrote:

Hello,

I have a form with a date time picker. I'm using Excel 2007. When the form
opens, my boss wants the date time picker to be blank. I'm not sure if that
is possible and had previously set it to current date. I've tried setting it
to vbNULL. This sets the value at 12/31/1899.

So I thought I would at least ask the group, can you make the date time
picker blank when first opening a form? During data entry, the data entry
person will set the date as appropriate.

Thanks.

Tony

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
Date Time Picker Mike Excel Discussion (Misc queries) 0 November 16th 06 04:36 AM
Date and Time Picker DAN J Excel Discussion (Misc queries) 2 September 21st 06 11:47 PM
Date/Time Picker Obie Excel Programming 10 October 11th 04 11:32 PM
date time picker chad Excel Programming 1 April 7th 04 06:27 PM
Set Value for Date/Time Picker Bill Lunney Excel Programming 1 July 21st 03 04:29 PM


All times are GMT +1. The time now is 07:36 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"