I have an Excel userform in which are Textboxes where various dates have to be entered.
I am looking for VBA which will autocomplete dates that are partially entered:
- If I put 02/10 instead of 02/10/2022, I'd like the year to be added automatically
- Or if I put 2/10/2022 I'd like the first 0 to be put automatically.
- Or if I put 021022 then the result will be 02/10/2022.
Thanks for any help.
I am looking for VBA which will autocomplete dates that are partially entered:
- If I put 02/10 instead of 02/10/2022, I'd like the year to be added automatically
- Or if I put 2/10/2022 I'd like the first 0 to be put automatically.
- Or if I put 021022 then the result will be 02/10/2022.
Thanks for any help.