+ Reply to Thread
Results 1 to 4 of 4

searching for an exact word

  1. #1
    Registered User
    Join Date
    03-13-2009
    Location
    uk
    MS-Off Ver
    Excel 2003
    Posts
    14

    searching for an exact word

    Hi there,

    I have a macro that searches for the word bonus and copies it from one place to another. The problem I have though it copies the wrong cell. I have several cells with the word bonus in. The macro copies the first cell it comes across with the word bonus. Which is "QR3 bonus". I want it to ignore that one and pick out the cell with only bonus in it.

  2. #2
    Valued Forum Contributor mdbct's Avatar
    Join Date
    11-11-2005
    Location
    CT
    MS-Off Ver
    2003 & 2007
    Posts
    848

    Re: searching for an exact word

    The following would find a cell containing only the word bonus - I've highlighted the portion that specifies that the whole cell must match "bonus'

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    03-13-2009
    Location
    uk
    MS-Off Ver
    Excel 2003
    Posts
    14

    Re: searching for an exact word

    Please Login or Register  to view this content.
    What's the best way to incorporate that into the above code?

  4. #4
    Valued Forum Contributor mdbct's Avatar
    Join Date
    11-11-2005
    Location
    CT
    MS-Off Ver
    2003 & 2007
    Posts
    848

    Re: searching for an exact word

    try this:
    Please Login or Register  to view this content.

+ 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