+ Reply to Thread
Results 1 to 3 of 3

how to check if range contains particular word

  1. #1
    Sunil Patel
    Guest

    how to check if range contains particular word

    i need to check via macro to see if range"A1:A20" contains a particular word
    .. the word comes from another range via ....for each cell in range





  2. #2
    Bob Phillips
    Guest

    Re: how to check if range contains particular word


    If IsError(.Match(cell.Value, myRng, 0)) Then
    'not found
    Else
    'found
    End If


    --
    HTH

    Bob Phillips

    "Sunil Patel" <[email protected]> wrote in message
    news:[email protected]...
    > i need to check via macro to see if range"A1:A20" contains a particular

    word
    > . the word comes from another range via ....for each cell in range
    >
    >
    >
    >




  3. #3
    Tom Ogilvy
    Guest

    Re: how to check if range contains particular word

    if a whole word match (the cell contains only that word):

    if application.Countif(Range("A1:A20"),Range("B9")) > 0 then

    if not, post back.

    --
    Regards,
    Tom Ogilvy

    "Sunil Patel" <[email protected]> wrote in message
    news:[email protected]...
    > i need to check via macro to see if range"A1:A20" contains a particular

    word
    > . the word comes from another range via ....for each cell in range
    >
    >
    >
    >




+ 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