+ Reply to Thread
Results 1 to 8 of 8

Compile Error: Ambiguous Name Detected: Worksheet_Change

  1. #1
    Registered User
    Join Date
    08-29-2018
    Location
    Indiana, US
    MS-Off Ver
    2016
    Posts
    36

    Compile Error: Ambiguous Name Detected: Worksheet_Change

    Hello! I am trying to use a script that allows me to select multiple options from a drop down box but am now having issues with this error popping up when I attempt to make a selection. I'm confused as to what I did wrong here. I did change the name to Worksheet1_Change just so I could save it and attach it here. Any help is greatly appreciated!!
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    10-06-2008
    Location
    Canada
    MS-Off Ver
    2007 / 2013
    Posts
    5,517

    Re: Compile Error: Ambiguous Name Detected: Worksheet_Change

    You have the same "Worksheet_Change" declaration twice.
    Combine the two into one.

  3. #3
    Registered User
    Join Date
    08-29-2018
    Location
    Indiana, US
    MS-Off Ver
    2016
    Posts
    36

    Re: Compile Error: Ambiguous Name Detected: Worksheet_Change

    I've tried to do this but I'm not sure how to do so accurately. Everything I've tried so far makes it so that it doesn't actually filter the list anymore. It just allows me to select multiple options. Would you be able to show me how to do this correctly? And thank you for your reply!

  4. #4
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,475

    Re: Compile Error: Ambiguous Name Detected: Worksheet_Change

    You are filtering A2.current region, this also include the top row as there are no spaces.
    I don't think you need current region.

    Please Login or Register  to view this content.

  5. #5
    Forum Expert
    Join Date
    10-06-2008
    Location
    Canada
    MS-Off Ver
    2007 / 2013
    Posts
    5,517

    Re: Compile Error: Ambiguous Name Detected: Worksheet_Change

    Explain in detail what you want to achieve.
    It is helpful if you can attach a workbook with a before and after manually prepared sheets.

  6. #6
    Registered User
    Join Date
    08-29-2018
    Location
    Indiana, US
    MS-Off Ver
    2016
    Posts
    36

    Re: Compile Error: Ambiguous Name Detected: Worksheet_Change

    I am trying to create a drop down menu that will allow me to make multiple selections plus show any results that contain the selected option in any way. This is supposed to be so that I can easily see the tests that I need to search for, filtering out all of the tests that I'm not focusing on at that time. So the drop down menu is in D1. I want to be able to select "Urine" and it show me all the results that contain "Urine" whether it's by itself or with a list of other tests ran as well. I also want to be able to select "Urine", "HIV", and "Pap Smear" and have it return all valid responses to me. I also want it to be able to recognize any version of (for example) "Pap Smear", whether it was spelled with capitalization or not, etc.

    I've attached a "before" workbook but I don't have any sort of "after" besides what I attached in the original post. I'm not sure if this is what you are asking for though. Thank you for your help!!
    Attached Files Attached Files

  7. #7
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,475

    Re: Compile Error: Ambiguous Name Detected: Worksheet_Change

    Were you able to check out post #4?

  8. #8
    Registered User
    Join Date
    08-29-2018
    Location
    Indiana, US
    MS-Off Ver
    2016
    Posts
    36

    Re: Compile Error: Ambiguous Name Detected: Worksheet_Change

    @davesexcel Sorry! I did not see your previous post! I fixed it as you indicated- thank you! :D

+ 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. [SOLVED] Compile Error: Ambiguous name detected
    By trubio77 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 10-19-2017, 02:26 PM
  2. Compile Error Ambiguous name detected worksheet_change
    By OwnDizzzld in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-20-2014, 09:17 AM
  3. VBA Compile Error: Ambiguous name detected
    By kieranoduill in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-08-2013, 05:31 PM
  4. [SOLVED] compile error ambiguous name detected worksheet_change
    By MAttTaylor87 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-22-2013, 07:07 AM
  5. [SOLVED] compile error ambiguous name detected!?
    By Margate in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-24-2013, 08:49 PM
  6. [SOLVED] Compile error: Ambiguous name detected: Worksheet_Change
    By ericwilder in forum Excel Programming / VBA / Macros
    Replies: 32
    Last Post: 01-30-2013, 12:49 PM
  7. compile error: Ambiguous name detected :worksheet_change
    By ckz in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-24-2012, 12:41 PM

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