Results 1 to 17 of 17

Thread: CallByName (Solved)

Threaded View

  1. #1

    Thread Starter
    Frenzied Member Tec-Nico's Avatar
    Join Date
    Jun 2002
    Location
    México
    Posts
    1,192

    Talking CallByName (Solved)

    Please help me...

    I am using CallByName in a module and it won't let me.
    Let's say I have a Module1 and I am calling by name the Procedure one...


    VB Code:
    1. Public Sub Procedure1()
    2.  MsgBox "Ta-Da!"
    3. End Sub
    4.  
    5. Public Sub Procedure2(NameFun as String)
    6.  CallByName Module1, NameFun, vbMethod
    7. End Sub
    8.  
    9. Public Sub Procedure3()
    10.  Procedure2 "Procedure1"
    11. End Sub
    It says Module1 is not an object or something like that... I cannot give either for parameter a Type defined by user if I use a Form instead of a module...

    Besides the code must be there, in the form, in order to recognize it... Please help me!!!
    Last edited by Tec-Nico; Nov 3rd, 2002 at 06:44 PM.
    We miss you, friend... Rest in Peace, we will take care of the rest of it.

    [vbcode]
    On Error Me.Fault = False
    [/vbcode]
    - Silence is the human way to share ignorance
    Tec-Nico

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width