Macro Coding calculating if one date entry is before another date entry

M

macroapa

I have two date fields within a User Form.

I require code that will amend produce two different sets of wording
dependant on whether Date A is before or after Date B.
ie If Date A is before Date B then Type "xxxxxx"
If Date A is after Date B then Type "yyyyy"
 
J

Jezebel

Date variables are just doubles in drag, so you can use ordinary arithmetic
to compare them --

If DateA < DateB then ...
 
Top