John_McClane
New Member
- Joined
- Apr 30, 2013
- Messages
- 27
Hello,
Thanks in advance for looking at my query.
I have a report that lists expiry dates for peoples training courses. It is generated by someone else, I cannot change the way the report is made (even though that would be the simple solution)
I am creating a macro to tidy up the report and to conditionally format the dates to have a traffic light system, however because the dates are 2 digit year dates (e.g 04/04/14) the conditional formatting does not work. Of course, I can change the dates by using error checking but that doesn't seem to record so when I run the macro the dates do not change. They are all xx/xx/20xx. Is there any code I can add to change all the dates to 4 digit with '20' at the beginning of the year?
Any ideas to get the conditional formatting to work would be great! Thank you very much,
Thanks in advance for looking at my query.
I have a report that lists expiry dates for peoples training courses. It is generated by someone else, I cannot change the way the report is made (even though that would be the simple solution)
I am creating a macro to tidy up the report and to conditionally format the dates to have a traffic light system, however because the dates are 2 digit year dates (e.g 04/04/14) the conditional formatting does not work. Of course, I can change the dates by using error checking but that doesn't seem to record so when I run the macro the dates do not change. They are all xx/xx/20xx. Is there any code I can add to change all the dates to 4 digit with '20' at the beginning of the year?
Any ideas to get the conditional formatting to work would be great! Thank you very much,