RawlinsCross
Active Member
- Joined
- Sep 9, 2016
- Messages
- 437
So I have a userform label with the caption of a date in the format "dd-mmm-yy" - let's just say it's "14-Oct-21". I want to search (.Find) this date in column A with dates also in the format "dd-mmm-yy". Now I realize in column A that I actually have dates (i.e. when I click on the corresponding cell in column A I see in the formula bar 2021-10-14.
So I think I have to convert the string label date "14-Oct-21" to the 2021-10-14 in order to find it. But when I try to convert the string label date it converts it to 2014-10-21.
I find dates in excel to be quite frustrating particularly when coupled with the .Find function. Any thoughts on how to proceed here?
John
So I think I have to convert the string label date "14-Oct-21" to the 2021-10-14 in order to find it. But when I try to convert the string label date it converts it to 2014-10-21.
I find dates in excel to be quite frustrating particularly when coupled with the .Find function. Any thoughts on how to proceed here?
John