Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default CDATE issues

Hi
maybe use an if statement:
e.g.
with activesheet.range("A1")
if .value<"" and isnumeric(.value) then
textbox1.value=cdate(.value)
else
textbox1.value=""
end if
end with

"Marcus" wrote:

Please help a novice

I am using the cdate function to populate a number of
textboxes in a userform with date information. However
when the fields are empty cdate returns 00:00:00 into the
textbox.

Is their anyway to force the textbox to be blank rather
than 00:00:00 when no date exists.

I am self taught so please make any explanation dummy
prove:)

Many thanks

Marucs

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
PRINTING ISSUES DJ Excel Worksheet Functions 0 November 30th 09 08:32 PM
Display Issues bsbm525 Excel Discussion (Misc queries) 1 July 13th 09 04:18 PM
Decimal Issues Danny Excel Worksheet Functions 3 May 24th 06 06:43 PM
CDate cannot coerce value of IsDate(true)? tkstock[_4_] Excel Programming 1 November 1st 04 04:34 PM
What is the differance between cdate and ... Bruccce Excel Programming 3 August 7th 03 09:00 PM


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