+ Reply to Thread
Results 1 to 3 of 3

Highlight EVERY instance of a word in cells

  1. #1
    Registered User
    Join Date
    07-06-2011
    Location
    Glasgow, Scotland
    MS-Off Ver
    Excel 2007
    Posts
    2

    Highlight EVERY instance of a word in cells

    Hi,

    I am looking to highlight every instance of a word (or series of words) in an Excel spreadsheet. I've searched through the forums and found a lot of excellent information regarding my issue but I can't quite get it to work.

    The below code works to a point.

    Please Login or Register  to view this content.
    It searches for instances of the words in the array called Fnd and highlights them in another color. These words are 'select ', 'update ' and 'insert '. My issue with this code is that it only seems to highlight the first instance of each word in each cell. I need it to highlight all intances of the word and in some cases there will be more than one instance of each word per cell.

    Any help would be greatly appreciated.

  2. #2
    Valued Forum Contributor Macdave_19's Avatar
    Join Date
    03-14-2007
    Location
    Birmingham, England
    MS-Off Ver
    12.0
    Posts
    808

    Re: Highlight EVERY instance of a word in cells

    Lol trying to replicate oracle SQL syntax by an chance?

    I think i looked at this a while ago and came up withy noting so it'll intersting seeing how you get on.

    Good luck, wish i could help.
    Mr MaGoo
    Magoo.Inc MMVII

    If i've helped please add to my Rep by Clicking on the Blue Scales in the top right hand corner of the post

  3. #3
    Registered User
    Join Date
    07-06-2011
    Location
    Glasgow, Scotland
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Highlight EVERY instance of a word in cells

    Quote Originally Posted by Macdave_19 View Post
    Lol trying to replicate oracle SQL syntax by an chance?

    I think i looked at this a while ago and came up withy noting so it'll intersting seeing how you get on.

    Good luck, wish i could help.
    Fingers crossed.

    PS. Its not my code. I can't take credit for it. Another forum member created it I only changed the array values.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1