+ Reply to Thread
Results 1 to 7 of 7

Search Function Error on Duplicate Entries

  1. #1
    Registered User
    Join Date
    04-13-2020
    Location
    Ottawa, Ontario
    MS-Off Ver
    Latest (Version 2003)
    Posts
    7

    Arrow Search Function Error on Duplicate Entries

    (Thanks in advance!!! ) Hello, I have a userform and I have a search button to search by "Last Name, First Name" - Normally it works well, but it gives the following error when there is more than one person (duplicate) with the same name and last name. (Name and last name are in the same cell)

    Run-time error 1004
    Method 'Range of object'_Global failed

    When I click debug, it brings me to:
    ListBox1.List = Range("SearchResults").Value

    "SearchResults" is a named range, and it is the following:

    =OFFSET(Name_Search!$A$6,0,0,COUNTA(Name_Search!$M:$M)-2,15)


    Please Login or Register  to view this content.
    Last edited by AbodeOfFelicity; 04-29-2020 at 07:31 AM.

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,446

    Re: Search Function Error on Duplicate Entries

    Administrative note
    Please update your profile as necessary to properly reflect the exact version(s) of Excel your question relates to. Members tailor answers based on your Excel version. Your profile does not indicate your version.(the "latest" today might not be the " latest" tomorrow)
    Thanks

  3. #3
    Registered User
    Join Date
    04-13-2020
    Location
    Ottawa, Ontario
    MS-Off Ver
    Latest (Version 2003)
    Posts
    7

    Re: Search Function Error on Duplicate Entries

    Quote Originally Posted by Pepe Le Mokko View Post
    Administrative note
    Please update your profile as necessary to properly reflect the exact version(s) of Excel your question relates to. Members tailor answers based on your Excel version. Your profile does not indicate your version.(the "latest" today might not be the " latest" tomorrow)
    Thanks
    Thanks, updated. Latest one, version 2003. (not year 2003)

  4. #4
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,446

    Re: Search Function Error on Duplicate Entries

    Just to be sure there is no confusion, you are still using XL2003 ?
    I'm asking because recent versions have lots of functionalities 2003 does not have

  5. #5
    Registered User
    Join Date
    04-13-2020
    Location
    Ottawa, Ontario
    MS-Off Ver
    Latest (Version 2003)
    Posts
    7

    Re: Search Function Error on Duplicate Entries

    Quote Originally Posted by Pepe Le Mokko View Post
    Just to be sure there is no confusion, you are still using XL2003 ?
    I'm asking because recent versions have lots of functionalities 2003 does not have
    No no, i'm using the latest excel. Excel 2020, Version 2003. Specifically, Version 2003 (Build 12624.20466)

  6. #6
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,446

    Re: Search Function Error on Duplicate Entries

    Ok, so update your XL version in your profile to 2020 ( the version as MS sees it is irrelevant as is the build). it will get you better help and help our members to help you.
    Thanks for your patience

    And BTW do not quote entire posts unnecessarily. Use the "Quick Reply" window instead

  7. #7
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,907

    Re: Search Function Error on Duplicate Entries

    Please post an example file. Instructions on how to are in the yellow banner on top of the page.
    Avoid using Select, Selection and Activate in your code. Use With ... End With instead.
    You can show your appreciation for those that have helped you by clicking the * at the bottom left of any of their posts.

+ 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. SUMIF Job Entries Over Date Range + Ignore Duplicate Job Entries
    By sansai in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-07-2019, 09:12 PM
  2. [SOLVED] Search for duplicate entries but keep duplicate rows and add entry accordingly
    By GreenWheels in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-29-2017, 06:13 PM
  3. Sorting Error with Duplicate Entries
    By VBHendo in forum Excel General
    Replies: 1
    Last Post: 02-18-2013, 09:30 AM
  4. Replies: 0
    Last Post: 06-14-2012, 12:38 PM
  5. Search duplicate entries and displaying multiple rows on textbox
    By weeliang88 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-26-2012, 10:54 PM
  6. How to execute a function in VBA and delete Duplicate Entries
    By nuttycongo123 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-06-2011, 11:53 AM

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