macro to retrieve Row Number of Conditionally Formatted cell

roc_on_the_rocks

Board Regular
Joined
Jun 6, 2009
Messages
175
Office Version
  1. 365
Platform
  1. Windows
Big fan of Mr. Excel for years, but this is finally my fist post. This should be simple for the pros, but I'm still crawling on VBA programming..

I'm tinkering with a macro to:

1) Scan a worksheet from LEFT to RIGHT and identify the FIRST Column containing the string "Engine_Speed". This may be named as "Engine_Speed_column".

2) Scan a worksheet from LEFT to RIGHT and identify the FIRST Column containing the string "DLC_ReferenceSpd". This may be named as "DLC_ReferenceSpd_column".

3) Scan the "Engine_Speed_column" from TOP to BOTTOM and locate the RowNumber of the FIRST Cell where Conditional Formatt .ColorIndex = 4 is TRUE and in the same row of "DLC_ReferenceSpd_column" the cell value is 700. Store this RowNumber as "start_row_700".

4) Loop (or something else) this criteria to create "start_row_800", "start_row_900" all the way to 2200, in 100 increments, by adjusting the sought value in "DLC_ReferenceSpd_column" from 700 to 2200.

Any help will be greatly appreciated!
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
Hello folks :),

Could someone please help me here or at least give me some directions?? :confused:

I sure appreciate your time and camaraderie.

THANKS!
 
Upvote 0

Forum statistics

Threads
1,215,410
Messages
6,124,749
Members
449,186
Latest member
HBryant

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top