Results 1 to 2 of 2

INSTR for a case statement

Threaded View

  1. #1
    Registered User
    Join Date
    06-04-2007
    Posts
    61

    INSTR for a case statement

    I would like to search for words within a cell and highlight accordingly.
    Below is a sample of what I have. I have tried to use the INSTR but cannot seem to get it to work. The cell contents are similar to the following

    2.3 PMI
    3.4 UG
    3.5 PMI & UG
        For Each Cell In Rng1
            Select Case Cell.Value
            'UG
            Case "UG"
                Cell.Interior.ColorIndex = 4
                Cell.Font.Bold = True
            'PMI and GE
            Case "PMI", "UG"
                Cell.Interior.ColorIndex = 5
                Cell.Font.Bold = True
            'PMI and UG
    Last edited by goofy78270; 09-11-2007 at 10:24 AM.

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