+ Reply to Thread
Results 1 to 4 of 4

negative "Edit Find" search response

  1. #1
    Registered User
    Join Date
    07-21-2010
    Location
    Toronto, Ontario
    MS-Off Ver
    Excel 2003
    Posts
    44

    negative "Edit Find" search response

    I tried using the macro recorder to find the code if a search comes up blank but no code is generated. I am doing a simple search in a short row using a variable for the "Find". If I get a blank response I want to search the next row with a different variable so I need to know how to handle the negative response of the "Find" search(es) and continue through a loop that checks several rows. I want to use the built in "Find" routine in Excel to search the rows instead of looping through many cells because it may be faster. Also, my search result will be a number from 1 to 5 but there is no "Match Pattern" option in my Excel 2003 Dialog box. This would allow me to use the "#" special character for any single digit as my find criteria. Each positive "Find" result would stop the search so I can process the number in the cell.

    Danny
    Last edited by TryToExcel; 08-08-2010 at 03:10 PM. Reason: New problem occurred with alternate code

  2. #2
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    re: negative "Edit Find" search response

    Try this

    Adjust the range etc to suit your needs
    Please Login or Register  to view this content.
    Hope this helps
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

  3. #3
    Registered User
    Join Date
    07-21-2010
    Location
    Toronto, Ontario
    MS-Off Ver
    Excel 2003
    Posts
    44

    Re: negative "Edit Find" search response

    I needed to be more specific in my question. If I don't get a blank response on my search I want the cell where there is data to become the active cell and then I can process the result, then move onto the next cell with data if there is one. If there is no data in the row search the code will loop to the next row until all rows and cells have had their cells checked and data processed. The range to search would be from B3 to H8. I notice in the code that is generated when a person uses the "Find" command in the recorder there are a lot of conditional attachments in the "Find" criteria. How do we know which ones to strip away to get just a basic search?

  4. #4
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: negative "Edit Find" search response

    Okay maybe try this
    Please Login or Register  to view this content.

    Is that closer to what you need?
    Attached Files Attached Files

+ 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