Frank Bacchus
Member
Hi:
I have a cell (A1) that contains text. At the end of this text there is a date in mm/dd/yyyy format. I would like to create a macro that would identify the date (at the end of the text) then subtract today's date from it. If the number of days is equal to or less than 10 day (or any other number I provide), I would like to flag cell B1 with "Y. Note the number of days can be a variable that I would supply to the macro, thus I can provide any number such as 5 or 8 or 30. But the calculation remains - today's date from date in cell A1 - if the number is days is equal or less than the 'provided' number of days, place a RED "Y" in cell B1. Can we doo this? See Example.
frank
I have a cell (A1) that contains text. At the end of this text there is a date in mm/dd/yyyy format. I would like to create a macro that would identify the date (at the end of the text) then subtract today's date from it. If the number of days is equal to or less than 10 day (or any other number I provide), I would like to flag cell B1 with "Y. Note the number of days can be a variable that I would supply to the macro, thus I can provide any number such as 5 or 8 or 30. But the calculation remains - today's date from date in cell A1 - if the number is days is equal or less than the 'provided' number of days, place a RED "Y" in cell B1. Can we doo this? See Example.
frank