+ Reply to Thread
Results 1 to 3 of 3

Run-time error '91' while using Find

  1. #1
    Registered User
    Join Date
    08-04-2011
    Location
    Hillsboro, OR
    MS-Off Ver
    Excel 2003
    Posts
    14

    Run-time error '91' while using Find

    The code continues beyond what I put in here but it is not important. When the code reaches the dataobj.range line of code, I get this error. Any ideas why it is happening?

    Please Login or Register  to view this content.
    Last edited by Mordred; 08-08-2011 at 12:45 PM.

  2. #2
    Valued Forum Contributor gjlindn's Avatar
    Join Date
    08-01-2011
    Location
    Dodgeville, WI
    MS-Off Ver
    Excel 2003, 2007, 2010, 2013
    Posts
    369

    Re: Run-time error '91' while using Find

    You're getting runtime error 91 because it didn't find "SD-1" and your code assumes it always will.
    Please Login or Register  to view this content.
    If you change that to the following, it may still not find "SD-1", but it shouldn't give you error 91.
    Please Login or Register  to view this content.
    You may need to post an example workbook in order to determine why the value is not found.
    -Greg If this is helpful, pls click Star icon in lower left corner

  3. #3
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259

    Re: Run-time error '91' while using Find

    Hello cummins,

    Welcome to the Forum!

    When posting the same question on multiple sites, we ask you to include a link to where you have posted. This prevents members from answer questions that you may already have an answer to.

    You should check back at Mr. Excel, as there are several answers already to this same question. Next time please let us know you have posted elsewhere.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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