having a right mare of a time getting some conditional formatting working based on some data exported from access
basicall the range of data is D2:AC100
D2
100 contains the value i want to base the formatting on
for each cell in the rest of the range E2:AC100
If the cell is empty do nothing
If the value in the corrisponding Column D for the row is as follows do associated formatting
=1, Red Background Red Text
2 <= value <= 5, Orange background/text
>5, Green background/text
edit the following 3 statements are the only thing I can get to work
now i need to implement it in vba in a way that can run as a macro initiated from access
basicall the range of data is D2:AC100
D2

for each cell in the rest of the range E2:AC100
If the cell is empty do nothing
If the value in the corrisponding Column D for the row is as follows do associated formatting
=1, Red Background Red Text
2 <= value <= 5, Orange background/text
>5, Green background/text
edit the following 3 statements are the only thing I can get to work
Code:
=AND(NOT(E2=""),NOT(E2=0),$D2=1)
=AND(NOT(E2=""),NOT(E2=0),$D2>1,$D2<6)
=AND(NOT(E2=""),NOT(E2=0),$D2>5)
now i need to implement it in vba in a way that can run as a macro initiated from access
Last edited: