conditional reset

  • Thread starter Thread starter james
  • Start date Start date
J

james

my form cell e3 always contains the date and I would like
to set the form to clear all contents if the date is
before todays date.

i know it should be something like this but i know ive
got some wrong

if activeworksheet.range("e3").value=<today
then
clear activeworksheet.range("d6:d26)
else
end if

thanks

Jim
 
If ActiveSheet.Range("e3").Value <= Date Then
ActiveSheet.Range("d6:d26").Value = ""
Else
End If

Ian
 
James,

If DateValue(ActiveSheet.Range("e3").Value) < Date Then
ActiveSheet.Range("d6:d26").ClearContents
End If

Regards
Neil
 

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

Back
Top