Highlight cells with same text

dado6612

Well-known Member
Joined
Dec 4, 2009
Messages
591
Hi to all

I want code which will, on some command (ex. double click) highlight all cells in range if they have same text as selected cell.
Ok, I assume that's easy, but problem is, I have merged cells and by my small experience with VBA, I know that codes doesn't work properly with merged cells.

Any help?

Thanks
 
One last problem
As some code earlier, it deletes all fills in all cells, except conditional formatted
Only cells in range b16:dn16 should be unhighlighted, I hope u can handle that too

I think its final problem :biggrin:
 
Upvote 0

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
Solved, there is brain in mine head :biggrin:

Thanks again

Edit: Or not :/

Ok, problem is not in Clear code, its in highlight code
It clear all fills in whole worksheet, I don't wana that, can u, please, somehow fix that?
 
Last edited:
Upvote 0
Awwww I fixed that :biggrin:
I'm something like Annoying orange :biggrin:

I just removed "Selection.Interior.ColorIndex = xlNone" line from first code

Thanks again, thats it for now :biggrin:
 
Upvote 0

Forum statistics

Threads
1,223,630
Messages
6,173,454
Members
452,514
Latest member
cjkelly15

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