#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 75
Default Empty Date

Hi all,

Just want to know if there are methods to assign an empty date (or null
value) to a date variable, just like I can assign and empty string "" to a
string variable. Thanks.

Frederick Chow
Hong Kong.


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,624
Default Empty Date

AFAIK, no. As with other numeric variables, date data types are given an
initial value of 0.

If you use a Variant instead, you can assign Null to it.

In article ,
"Frederick Chow" wrote:

Hi all,

Just want to know if there are methods to assign an empty date (or null
value) to a date variable, just like I can assign and empty string "" to a
string variable. Thanks.

Frederick Chow
Hong Kong.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 75
Default Empty Date

Thanks a lot then.

"JE McGimpsey" wrote in message
...
AFAIK, no. As with other numeric variables, date data types are given an
initial value of 0.

If you use a Variant instead, you can assign Null to it.

In article ,
"Frederick Chow" wrote:

Hi all,

Just want to know if there are methods to assign an empty date (or null
value) to a date variable, just like I can assign and empty string "" to
a
string variable. Thanks.

Frederick Chow
Hong Kong.



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
Excel: Format empty date cells kogrady Excel Discussion (Misc queries) 3 July 8th 09 10:03 PM
Insert Current Date when cell is empty?? Dazed&confused! Excel Worksheet Functions 4 February 7th 07 09:18 AM
Empty Date Cell as Zero [email protected] Excel Discussion (Misc queries) 1 September 22nd 06 01:09 AM
Can a function returning a date return an empty value? RB Smissaert Excel Programming 2 January 22nd 04 12:17 AM
Can blank cells created using empty Double-Quotes not be empty?? JohnI in Brisbane Excel Programming 6 September 7th 03 11:22 PM


All times are GMT +1. The time now is 05:21 PM.

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

About Us

"It's about Microsoft Excel"