+ Reply to Thread
Results 1 to 3 of 3

code with ambiguous name detected

  1. #1
    Registered User
    Join Date
    10-07-2007
    Posts
    4

    code with ambiguous name detected

    Hi everyone,
    I'm using the "API Menu maker - for Userforms" together with the "Userform to System Tray" code made by Ivan F Moala - The ExcelFiles (credits to him!!), but i have this compile error when i debug it:
    "Ambiguous name detected:GWL_WNDPROC"

    The code is to long to put it here, but i'm wondering if anyone can help me with that. I'm a litle bit dummie with API so i really need your help...!
    Many thanks.

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    This usually means that you have more than one Procedure with the same name.
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258
    Hello Memphis,

    When using API code the first line of a Standard Module is normally Option Explict. This will generate an error if a variable or constant has not been defined, or if there is a duplicate declaration.

    To track the duplicate declaration, use Find in the VBE. Open your Workbook and press the keys ALT+F11 to open the VBE. Type CTRL+F to bring up the Find dialog. Select the Current Project option, and type in GWL_PROC. Use Find Next button to locate any other occurances.

    Sincerely,
    Leith Ross

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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