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

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
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,223,236
Messages
6,170,915
Members
452,366
Latest member
TePunaBloke

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