+ Reply to Thread
Results 1 to 7 of 7

Compile error: Procedure does not match description....

  1. #1
    Registered User
    Join Date
    08-18-2013
    Location
    Highlands
    MS-Off Ver
    Excel 2010
    Posts
    19

    Compile error: Procedure does not match description....

    .
    I have Office 2010, Win 7 Home Premium SP 1. All Win updates applied.

    I last used amateur's VBA with MS Word and MS Access about 15 years ago (VB 6). I have no Excel VBA experience.

    When I tried to open a downloaded Excel file, there is an immediate jump to the following message:

    - Compile error: Procedure does not match description of event or procedure having the same name

    Do I need to find all the places where the procedure is used and check the type/number of arguments? If so, is there an easy way to find all the occurrences?

    I would be most grateful for any advice.

    Thanks.

  2. #2
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Compile error: Procedure does not match description....

    What do you see when click the error?
    I suspect you have two codes that have the same name.

  3. #3
    Registered User
    Join Date
    08-18-2013
    Location
    Highlands
    MS-Off Ver
    Excel 2010
    Posts
    19

    Re: Compile error: Procedure does not match description....

    Quote Originally Posted by AB33 View Post
    What do you see when click the error?
    I suspect you have two codes that have the same name.
    The following line of code is highlighted. (I forgot to include this in my OP. Sorry.)

    Private Sub m_TWSControl_orderStatus(ByVal id As Long, ByVal status As String, ByVal filled As Long, ByVal remaining As Long, ByVal avgFillPrice As Double, ByVal permId As Long, ByVal parentId As Long, ByVal lastFillPrice As Double, ByVal clientId As Long, ByVal whyHeld As String)

    Thanks.

  4. #4
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Compile error: Procedure does not match description....

    This procedure name is "m_TWSControl_orderStatus". Do you have another code with the same name?

    Or you are trying to call this procedure from another one, but this is a private sub.

  5. #5
    Registered User
    Join Date
    08-18-2013
    Location
    Highlands
    MS-Off Ver
    Excel 2010
    Posts
    19

    Re: Compile error: Procedure does not match description....

    Quote Originally Posted by AB33 View Post
    This procedure name is "m_TWSControl_orderStatus". Do you have another code with the same name?

    Or you are trying to call this procedure from another one, but this is a private sub.
    I searched for "m_TWSControl_orderStatus" in "Current Project" with only one result. That result is the line that was highlighted under the message box (see my previous post).

    Does that indicate that the code is never called? Maybe I could comment out the sub to see what happens? (Edited: I think that probably makes no sense. I don't think code needs to be called?)

    Thanks.
    Last edited by OldGrantonian; 06-25-2016 at 06:54 AM.

  6. #6
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Compile error: Procedure does not match description....

    As it a sub with parameters, you can not run it directly, but called from another procedure with the right arguments.
    Try to remove the private bit.


    Sub m_TWSControl_orderStatus

    Is it possible for you to attach the code with a sample book?

  7. #7
    Registered User
    Join Date
    09-23-2017
    Location
    Richmond, VA
    MS-Off Ver
    MS 360
    Posts
    1

    Re: Compile error: Procedure does not match description....

    Hi,

    Did you ever get the IBExcelTrader to work after receiving the VBA compiling error?

+ 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: Procedure too large
    By MileHigh_PhD in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-11-2018, 11:08 AM
  2. [SOLVED] Compile error: Procedure too large
    By Mecha_Trueno in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 03-12-2014, 08:45 AM
  3. Compile Error: Procedure too Large
    By tarab in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-11-2013, 05:43 PM
  4. Compile error: Procedure too large
    By Knitty in forum Excel Programming / VBA / Macros
    Replies: 21
    Last Post: 03-04-2011, 06:52 PM
  5. 'Compile Error - Procedure Too Large'
    By nods in forum Excel Programming / VBA / Macros
    Replies: 24
    Last Post: 11-11-2010, 12:44 AM
  6. Error Message (Compile Error, Procedure too Large)
    By dreicer_Jarr in forum Excel Programming / VBA / Macros
    Replies: 27
    Last Post: 10-29-2010, 03:52 AM
  7. Compile Error - Procedure too large....
    By uksurvivor in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-13-2010, 10:00 AM
  8. Re: Compile error: Procedure too large
    By Susan Hayes in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-20-2005, 12:06 PM

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