CDATE issues

  • Thread starter Thread starter Marcus
  • Start date Start date
M

Marcus

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
 
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

error comparing dates 1
Comparing Dates 2
Cdate funtion inconsistency 4
Time issues in code 6
Lock colon in textbox 1
cdate problem 3
Help with Vlookup a date 2
OFFSET LOOKUP function in VBA? 9

Back
Top