Experts,
I have attached a sample Excel sheet. I need some help in writing macro to set color code the column E (status column) based on the values of column G for a group (column A).
a) Basically in the attached example, for ABS group starting at A10, all I need is to get all the cell values from G10 until there is a change in group in column (in the example ACM), so I would get G10, G11 and G12. If all of them are empty, then color code the E10 cell to RED. In the attached example, I would get only value of Vehicle Configuration Complete so I need to set the color as GREEN on E10.
b) Once the group changed to ACM, then for that group get all the cell values in column G, from that row until there is a change in group (e.x FCIM). If all of them are empty, then color code the cell E13 to RED. In the attached example, there are 2 values Definition Approved and Draft. If we find at least one of the values as "Draft", then set the cell E13 color to RED.
c) In the same way for every group , we need to get the column G cell values till there is a group change. From the retrieved values, if all of them say Vehicle Configuration complete, then set the status of column E row (matching that of group) to GREEN. If at least one of them is Draft, then color code to RED. If all are Definition Approved, then color code to YELLOW.
These are 3 rules that I want to apply and set the color code accordingly.
Appreciate if someone can help me with the macro for the same.
Bookmarks