newholyman
asked on
MS Access 2010 change MS Excel cell background color using VBa
1. I need to open EXCEL work book.
2. compare column L to date
3 . If less than set back ground color to red
4. if greater than set back ground color green
5. if equal set background color to yellow
I would like this to use VBA code.
Using: MS Access 2010 and MS Excel
2. compare column L to date
3 . If less than set back ground color to red
4. if greater than set back ground color green
5. if equal set background color to yellow
I would like this to use VBA code.
Using: MS Access 2010 and MS Excel
ASKER
I need to compare to a date mm/dd/yy on form.
thank
wrk_date =09/22/12
if wks.cells > wrk_date then
change color grenn
end if
thank
wrk_date =09/22/12
if wks.cells > wrk_date then
change color grenn
end if
No problem. The procedure I wrote accepts date as a parameter, so when you open your form in Access and select your date, pass the date you selected as a paramter to the procedure, along with the path/name of your workbook, and the name of the worksheet.
ASKER
In addition the column 12 not column one
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I'm sorry, I only want to check column L to a date field and only color coumn L
Thank you
Thank you
Open in new window