- Local time
- Yesterday, 22:14
- Joined
- Feb 28, 2001
- Messages
- 30,104
Good point, G. VBA does automatic promotion / casting within the expression to the right hand side of an equals-sign. Which is why it is possible to write "DATE() + 3" and treat the result as a date.
For novice readers: The "3" gets promoted to match DATE(), which is a "higher" data type in the hierarchy of promotion.
For novice readers: The "3" gets promoted to match DATE(), which is a "higher" data type in the hierarchy of promotion.