Select rows based on selected cells

dyscea

New Member
Joined
Aug 16, 2022
Messages
5
Office Version
  1. 365
Platform
  1. Windows
1660670992080.png


I search and highlight for a very unique string ie. "Header", find all, highlight all.

With the cells I needed selected, I would like to select the row as well. I tried Shift+Space, but it only selected the row of the last cell selected.

My end goal is to then highlight the rows as a visual aid.

I've seen solutions using filters, but that isn't as clean as what I had described above. And I've seen it done! Many moons ago. It was awesome for what I needed to do. This was when I was younger and before Drive to save it. Clearly, I haven't needed it since, but now I do.

Thank you in advance!
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
The easiest way without using code would be to click the Row then press "Shift + Space" then while holding Ctrl, Click the next row. Again press "Shift + Space". Repeat this for every row you want to highlight. If you want a way to do this with code using "Ctrl + Shift + H" then go to Developer, Visual Basic, In the VBAProject area find "Personal.XLSB" press that. Then press "Insert", "Module", then click the gray area. Then Paste this:

Public Sub highLightRowShortcut()

Application.OnKey "+^H", "HighLightRow"

End Sub




Public Sub HighLightRow()

Selection.EntireRow.Activate

End Sub

Click On highLightRowShortcut then Press "F5" or the "Green Play Button" towards the top. After that you should be able to select the headers while holding "CTRL" then Press "Ctrl + Shift + H" they should highlight the rows from now on when you do this.

Let me know how this goes!
 
Upvote 0
Solution
Chef's kiss. Thank you! Sorry for the late reply. I wanted another Monday data to try it.

Solved!!
 
Upvote 0

Forum statistics

Threads
1,214,983
Messages
6,122,592
Members
449,089
Latest member
Motoracer88

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