Is it possible to use VBA to check weather a specific cell (D1) within a range of cells (D1:D20) mets a certain criteria? The criteris is going to be different for each cell in the range. I dont want to use conditional formatting as I am hoping to use this code many times.
For example,
D1 = 3.0 (formula D1 >=2.0 <= 3.0, then turn cell green)
D2 = 1.8 (formula D2 <2.0 >= 1.0, then turn cell yellow)
D3 = .08 (formula <1.0, then turn cell red)
Thanks.
For example,
D1 = 3.0 (formula D1 >=2.0 <= 3.0, then turn cell green)
D2 = 1.8 (formula D2 <2.0 >= 1.0, then turn cell yellow)
D3 = .08 (formula <1.0, then turn cell red)
Thanks.