VBA to skip through the conditionally formatted yellow highlighted rows

Tommy_Oh_Boy

New Member
Joined
Sep 12, 2023
Messages
9
Office Version
  1. 365
Hello,

I have a list of data in $, % and texts that are conditionally formatted to adhere certain conditions in columns A thru E.
If the condition is met, the cell is highlighted in yellow.
The list is long, rows A9 through E2000. Thus I'm hoping to create a macro assigned button that finds the highlighted cells and jumps through the rows within 4 columns (A thru D) so that I avoid scrolling endlessly.
And when it reaches the bottom of the row D2000, it starts back from A9 so that it loops.
Can I get some help creating a VBA code for this?
I attached a sample file as an example.
 

Attachments

  • Sample Data.JPG
    Sample Data.JPG
    79.6 KB · Views: 9
This is amazing... Thank you so much , BigBeachBananas. This solves the problem completely.
I wasn't sure highlights using conditional formatting would work with VBA... this is a masterpiece... If I have ask one last request, is it possible add a function to go back to the first find when the search reaches the bottom of the page?

By the way, here is the link for the cross-reference.
Add another button at the bottom

VBA Code:
Sub GoToTop()
    ThisWorkbook.Sheets("Sheet1").Range("A9").Select
End Sub
 
Upvote 0

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.

Forum statistics

Threads
1,223,897
Messages
6,175,270
Members
452,628
Latest member
dd2

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