+ Reply to Thread
Results 1 to 9 of 9

Compile Error: Ambiguous name detected

  1. #1
    Registered User
    Join Date
    10-11-2017
    Location
    San Antonio, TX
    MS-Off Ver
    7
    Posts
    41

    Compile Error: Ambiguous name detected

    Hello,

    need some assistance

    I keep getting the following Compile Error

    "Ambiguous name detected: Worksheet_Change"

    here is the code that I run:

    Please Login or Register  to view this content.
    Last edited by trubio77; 10-19-2017 at 10:15 AM.

  2. #2
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: Compile Error: Ambiguous name detected

    You can't have 2 (or more) separate worksheet_change macros on the same worksheet.
    Please help by:

    Marking threads as closed once your issue is resolved. How? The Thread Tools at the top
    Any reputation (*) points appreciated. Not just by me, but by all those helping, so if you found someone's input useful, please take a second to click the * at the bottom left to let them know

    There are 10 kinds of people in this world... those who understand binary, and those who don't.

  3. #3
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: Compile Error: Ambiguous name detected

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Click on Edit to open your thread, then highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here

    (This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7)

  4. #4
    Registered User
    Join Date
    10-11-2017
    Location
    San Antonio, TX
    MS-Off Ver
    7
    Posts
    41

    Re: Compile Error: Ambiguous name detected

    sorry about that

    I have corrected

    thank you

  5. #5
    Registered User
    Join Date
    10-11-2017
    Location
    San Antonio, TX
    MS-Off Ver
    7
    Posts
    41

    Re: Compile Error: Ambiguous name detected

    Arkadi,

    if I am not able to have 2 or more separate worksheet_change macros on the same worksheet, how do I fix this

    thank you

  6. #6
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: Compile Error: Ambiguous name detected

    Your If statements ensure the part inside only runs if the condition is met... so just put all the If blocks in the same change event.

  7. #7
    Registered User
    Join Date
    10-11-2017
    Location
    San Antonio, TX
    MS-Off Ver
    7
    Posts
    41

    Re: Compile Error: Ambiguous name detected

    Arkadi,

    not sure how to do that

    is this correct

    Please Login or Register  to view this content.

  8. #8
    Registered User
    Join Date
    10-11-2017
    Location
    San Antonio, TX
    MS-Off Ver
    7
    Posts
    41

    Re: Compile Error: Ambiguous name detected

    I got it

    thank you ..... SOLVED

  9. #9
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: Compile Error: Ambiguous name detected

    Sorry... had just logged back in to check... glad you solved it, and apologies for not answering sooner.

+ 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. VBA Compile Error: Ambiguous name detected:Test
    By dalewms2 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-21-2014, 03:37 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. Compile Error : Ambiguous name detected
    By vasanthrs in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-17-2013, 09:58 AM
  4. VBA Compile Error: Ambiguous name detected
    By kieranoduill in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-08-2013, 05:31 PM
  5. [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
  6. [SOLVED] compile error ambiguous name detected!?
    By Margate in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-24-2013, 08:49 PM
  7. Compile error: Ambiguous name detected
    By Aletha in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-05-2008, 05:48 PM
  8. Compile Error: Ambiguous Name Detected: Workbook_Open
    By Gos-C in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-19-2008, 10:46 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