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

searching text range text

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

ResolvedVersion 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:

Viewing Many Worksheets

If there are more worksheets in your workbook than there is room to show all their tabs at the bottom of the screen - Right click on the navigation arrows. A list of all your worksheets is shown. You just click on the one that you want to access. If you have more than 15 worksheets, select in the list and choose your worksheet from hundreds.

View all Excel hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.11 secs.