I want to check if a date in a cell is before the current date.
How can i do that (in VBA code)
![]()
Please Login or Register to view this content.
I want to check if a date in a cell is before the current date.
How can i do that (in VBA code)
![]()
Please Login or Register to view this content.
try
rgds![]()
Please Login or Register to view this content.
johnjohns
Why not just use Conditional Formatting?
Hope that helps.
RoyUK
--------
For Excel Tips & Solutions, free examples and tutorials why not check out my web site
Free DataBaseForm example
thanks johnjohns
it works ^^
It will only work if your users enable macros, so Conditional formatting would be the best option & faster
RoyUK is right. If at all possible, use excel's built in functions. Macros and array formulas should be of second preference always
rgds
johnjohns
I wouldn't always go along with that myself... Conditional Formatting is super volatile so on occasion using VBA to control the formats as and when required would be deemed preferable.
My Recommended Reading:
Volatility
Sumproduct & Arrays
Pivot Intro
Email from XL - VBA & Outlook VBA
Function Dictionary & Function Translations
Dynamic Named Ranges
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks