Hi all,
Kind of a newbie here... hoping to get some info on how to write code in order to have the report that I'm having generated in Access, exported to Excel through a module, have colors based on what is in the cell (specifically date information.)
For the first column to have the color grey across the top bar, I have used: xlSheet.Range("A1", "V1").Interior.ColorIndex = numCOLOR_Grey
Now what I want to do is if a date appears that is in the past, to have that colored red. If it's coming up in the next 30 days, I want that colored yellow. The sticky bit is though, that the date field is a text field and some have letters after the date. Example: the date could either look like 3/14/2014 or 3/14/2014 (p).
Am I making any sense at all? Please let me know if you need more information in order to assist.
Thank you!
-MCC
Kind of a newbie here... hoping to get some info on how to write code in order to have the report that I'm having generated in Access, exported to Excel through a module, have colors based on what is in the cell (specifically date information.)
For the first column to have the color grey across the top bar, I have used: xlSheet.Range("A1", "V1").Interior.ColorIndex = numCOLOR_Grey
Now what I want to do is if a date appears that is in the past, to have that colored red. If it's coming up in the next 30 days, I want that colored yellow. The sticky bit is though, that the date field is a text field and some have letters after the date. Example: the date could either look like 3/14/2014 or 3/14/2014 (p).
Am I making any sense at all? Please let me know if you need more information in order to assist.
Thank you!
-MCC