+ Reply to Thread
Results 1 to 7 of 7

"Ambiguous Name Detected" and other button problems

  1. #1
    Registered User
    Join Date
    11-20-2014
    Location
    Madison, WI
    MS-Off Ver
    Excel for MAC 2011
    Posts
    50

    "Ambiguous Name Detected" and other button problems

    I have a series of 12 buttons in one sheet of a multiple sheet workbook that all need the same basic code (see below). The code created for Button_1 worked...so I copied, pasted, and edited that code for the other 11 buttons. None of the other ones will work! For some of the buttons, I get a "Ambiguous Name Detected" error. For others, I get: "Cannot run the macro '(name of macro)'. The macro may not be available in this workbook or all macros may be disabled." Can anyone help? Is there a common cause for these errors?

    The code in question:
    Please Login or Register  to view this content.
    etc...

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: "Ambiguous Name Detected" and other button problems

    Welcome to the forum

    Please attach a sample workbook (not a picture or pasted copy). Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

  3. #3
    Forum Guru
    Join Date
    04-23-2012
    Location
    New Jersey, USA
    MS-Off Ver
    Excel 365
    Posts
    2,475

    Re: "Ambiguous Name Detected" and other button problems

    That "Ambiguous Name Detected" error usually means you have two procedures with the exact same name.

  4. #4
    Registered User
    Join Date
    11-20-2014
    Location
    Madison, WI
    MS-Off Ver
    Excel for MAC 2011
    Posts
    50

    Re: "Ambiguous Name Detected" and other button problems

    I think I found my problem. I have other buttons in this same workbook (on other sheets) with the same name (number). Is there a way to avoid this?

  5. #5
    Registered User
    Join Date
    11-20-2014
    Location
    Madison, WI
    MS-Off Ver
    Excel for MAC 2011
    Posts
    50

    Re: "Ambiguous Name Detected" and other button problems

    Problem solved by deleting malfunctioning buttons and adding new buttons that had non-duplicative names.

  6. #6
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,239

    Re: "Ambiguous Name Detected" and other button problems

    You’d be a lot better off with normal buttons on the sheet rather than activex and assigning them all the same macro

  7. #7
    Forum Expert
    Join Date
    10-06-2017
    Location
    drevni ruchadlo
    MS-Off Ver
    old
    Posts
    2,276

    Re: "Ambiguous Name Detected" and other button problems

    Quote Originally Posted by UWBadger View Post
    ... solved by deleting ... buttons and adding new buttons ...
    If you have many short macros for buttons and you don't want use the class module, then maybe use (???) such a structure as below.
    The code will be clearer for reading and checking:
    Please Login or Register  to view this content.

+ 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] Need Help PLEASE Ambiguous name detected "RangetoHTML
    By bdouglas1011 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-30-2021, 03:22 PM
  2. [SOLVED] Two macros giving "Ambiguous Name Detected"
    By jme1013 in forum Excel General
    Replies: 3
    Last Post: 11-29-2018, 04:04 AM
  3. Opening specific Workbook results in ambiguous "400" error
    By twfreeeman in forum Excel General
    Replies: 2
    Last Post: 01-18-2017, 11:37 AM
  4. Replies: 0
    Last Post: 09-13-2016, 01:31 PM
  5. [SOLVED] Error "Ambiguous name detected: My Function Name" after function has been used for months
    By capson in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-08-2016, 11:33 AM
  6. [SOLVED] "Ambiguous name" displayed...when trying to run two macros in same worksheet...
    By jaysakle in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-16-2013, 05:57 AM
  7. "Ambiguous name detected: FormatCell"
    By copleyr in forum Excel Programming / VBA / Macros
    Replies: 20
    Last Post: 09-05-2009, 10:16 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