Hi all
I wonder if anyone can help.
I have some data with set headers. I want to highlight cells greater than zero in a particular column referencing its header (as the column is not always in a fixed position). However I also want to exclude entries if the adjacent column includes a particular reference.
Example - Column I = "Amount", column E = "Comments".
If the amount column has values greater than zero, I want to highlight these cells but only if the comments column does not contain the word 'exclude'.
Now I can do this with a for each loop using the Appliation.WorksheetFunction.Match formula to locate the headers and then highlight the cells however the loop is cumbersome.
Is there a better alternative?
Many thanks for any comments or points in the right direction.
I wonder if anyone can help.
I have some data with set headers. I want to highlight cells greater than zero in a particular column referencing its header (as the column is not always in a fixed position). However I also want to exclude entries if the adjacent column includes a particular reference.
Example - Column I = "Amount", column E = "Comments".
If the amount column has values greater than zero, I want to highlight these cells but only if the comments column does not contain the word 'exclude'.
Now I can do this with a for each loop using the Appliation.WorksheetFunction.Match formula to locate the headers and then highlight the cells however the loop is cumbersome.
Is there a better alternative?
Many thanks for any comments or points in the right direction.