when writing vba code, how do i format now() to mm/dd/yyyy so that if i'm searching for a today in a worksheet, it will locate todays date?
when writing vba code, how do i format now() to mm/dd/yyyy so that if i'm searching for a today in a worksheet, it will locate todays date?
Hello Gregvb,
You can do it this way...
Now you can compare Today from a cell with myDate in your code and test if they are equal.![]()
Please Login or Register to view this content.
Sincerely,
Leith Ross
that didnt work for me. Perhaps I should be searching for the excel number date (eg 39198) instead. Is there a way to format now() to that?
Hello Gregvb,
Post the code you are using to find today and compare it.
Thanks,
Leith Ross
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks