+ Reply to Thread
Results 1 to 4 of 4

Runtime Error 91 when using Worksheet().Range().Find().Select

  1. #1
    Registered User
    Join Date
    11-26-2013
    Location
    Manila, Philippines
    MS-Off Ver
    Excel 2013
    Posts
    21

    Question Runtime Error 91 when using Worksheet().Range().Find().Select

    Good day!

    I am currently having a runtime error when I execute this code:

    Please Login or Register  to view this content.
    In H2 I have a dropdown list of all values in DATA Sheet A2:A6001 and in column Y i was hoping to input "Reserved" if the value in A:A matches the value in H2.

    Any help is appreciated.

    Thank you!

  2. #2
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    22,064

    Re: Runtime Error 91 when using Worksheet().Range().Find().Select

    The error means that the lookup value wasn't found. Find can be tricky as it has a lot of optional arguments that persist between find operations, whether done in code or manually. I'd use MATCH here:

    Please Login or Register  to view this content.
    The fact that your code wasn't finding a match even though you are using a list of used values, may also mean that you have a data type conflict - for example, your variable is a string, but if the values are numeric that could cause a mismatch.
    Last edited by romperstomper; 03-17-2015 at 06:02 AM.
    Everyone who confuses correlation and causation ends up dead.

  3. #3
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,788

    Re: Runtime Error 91 when using Worksheet().Range().Find().Select

    Please Login or Register  to view this content.


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  4. #4
    Registered User
    Join Date
    11-26-2013
    Location
    Manila, Philippines
    MS-Off Ver
    Excel 2013
    Posts
    21

    Re: Runtime Error 91 when using Worksheet().Range().Find().Select

    I used the first code. It worked perfectly!

    Thank you so much!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. "Runtime error '-2147417848 (80010108)' Method 'find' of object 'Range' failed"
    By excelworker_1 in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 06-14-2012, 09:53 AM
  2. Excel VBA Runtime error 1004 "Select method of Range class failed"
    By jeskit in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-09-2012, 10:16 AM
  3. Error: Runtime 1004 - Select method of range class failed
    By additude in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-18-2008, 05:58 PM
  4. Runtime Error 1004 Select method of Range class Failed
    By IanO in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-16-2005, 04:05 PM
  5. Set worksheet range runtime error 1004
    By DaveP in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-29-2005, 03:06 AM

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