searching text range text

Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

Forum home » Delegate support and help forum » Microsoft Excel VBA Training and help » Searching text in range for text in another range then formattin

Searching text in range for text in another range then formattin

resolvedResolved · Low Priority · Version 2003

Yatin has attended:
Excel VBA Intro Intermediate course

Searching text in range for text in another range then formattin

For example:

In Sheet1 cells A1=London, A2=Glasgow, A3=Manchester. Sheet2 Cells A1:A50 contains a list of cities/towns in the UK.

I would like my macro to go through each cell in sheet2 and search for any of the cities listed in Sheet1. If a match if found then the cell's background in Sheet2 should turn red.

Thanks

Yatin

 

Training courses

 

Training information:

Welcome. Please choose your application (eg. Excel) and then post your question.

Our Microsoft Qualified trainers will then respond within 24 hours (working days).

Frequently Asked Questions
What does 'Resolved' mean?

Any suggestions, questions or comments? Please post in the Improve the forum thread.


 

Excel tip:

Enter formulae into multiple cells

If a formula is to be used in a series of cells, select the cells first. Now type in your formula and hold the Ctrl key while you press Enter. This enters the formula in each selected cell.

Just be careful with your absolute and relative cell references.

View all Excel hints and tips


Server loaded in 0.08 secs.