Hello,
I am working on a workbook that deals with costs. I am trying to write code that will highlight a range of cells given the cost has surpassed 5%, 10% or 15% of projected costs. Example, if cost was 5% over, highlight the cell yellow; 10% over, orange; 15% over, red. I am having problems getting the code to highlight the correct cell, or to call the correct cell.
Code:
Range K10:K84 is money spent, M10:M84 is budgeted amount. L10:L84 serves no role in my calculations. When I run the macro, the cells selected and altered AFTER the first run through are outside the specified range. I am also having issues because K10:K12, L10:L12, and M10:M12 and K13:K15, L13:L15, and M13:M15 ...etc... K82:K84,L82:L84, and M82:M84 are merged cells.
Thanks, I can provide additional information, but cannot provide the workbook. I made a mock workbook without the code attached.
Bookmarks