Macro to highlight cells.

Solved/Closed
steveo0707 Posts 2 Registration date Tuesday 30 April 2013 Status Member Last seen 13 May 2013 - 30 Apr 2013 à 11:42
steveo0707 Posts 2 Registration date Tuesday 30 April 2013 Status Member Last seen 13 May 2013 - 13 May 2013 à 10:55
I am very new to VBA and have spent countless hours looking for help on the web.

I have a worksheet with 100,000 rows(locations) and 34 columns(Channels).

I need a code to test for 5 levels of criteria.

Level 1 and Level 2 I have figured how to get the cells highlighted.

I cannot figure out how to get it to highlight the cells for Level 3, 4 and 5.

Level 1 highlights the cells green when the MF signal is <= 25 and US Thickness is >=9.0

Level 2 highlights the cells yellow when the MF signal is > 25 and < 90 and US Thickness is < 9.

Level 3 needs to scan the data for level 2 conditions for both MF and US in adjacent cells (up,down,side to side, and diagonally) and highlight those cells light orange.

Level 4 scans for Level 2 conditions for both MF and US for the same channel and location and highlight those cells bright orange.

Level 5 checks for multiple level 4 events in adjacent locations and highlight cells red.

1 response

rizvisa1 Posts 4478 Registration date Thursday 28 January 2010 Status Contributor Last seen 5 May 2022 766
4 May 2013 à 11:31
Is it possible to get a sample sheet posted at some public file share site and you posting a sample book to show what you want to do
steveo0707 Posts 2 Registration date Tuesday 30 April 2013 Status Member Last seen 13 May 2013
13 May 2013 à 10:55
Hello rizviasa1,

Sorry it took so long to get back to you. I have been super busy with work and school. I was able to get this problem figured out. Thank you for your response.

Thank you for your time!

Sincerely,

Stephen Meiring