+ Reply to Thread
Results 1 to 4 of 4

calling procedure

Hybrid View

  1. #1
    Juggernath
    Guest

    calling procedure

    I have event procedure (click) in a worksheet (vba space) and trying to call
    a procedure in a module from a event procedure. I think I do not know
    exactly syntax for that...



  2. #2
    Norman Jones
    Guest

    Re: calling procedure

    Hi Juggernath,

    Try something like:

    '=============>>
    Private Sub Worksheet_BeforeDoubleClick _
    (ByVal Target As Range, Cancel As Boolean)
    Call myMacro
    End Sub
    '<<=============


    ---
    Regards,
    Norman


    "Juggernath" <dvulinsp@mrgn.hr> wrote in message
    news:dnmcu7$7gc$1@bagan.srce.hr...
    >I have event procedure (click) in a worksheet (vba space) and trying to
    >call a procedure in a module from a event procedure. I think I do not know
    >exactly syntax for that...
    >




  3. #3
    Juggernath
    Guest

    Re: calling procedure

    It was very stupid question, sorry.
    The problem was the procedure has the same name as the module (ZFAK)
    So i have to callit like this: call ZFAK.ZFAK
    Thanx, and sorry everbody

    "Norman Jones" <normanjones@whereforartthou.com> wrote in message
    news:e4aak59$FHA.228@TK2MSFTNGP12.phx.gbl...
    > Hi Juggernath,
    >
    > Try something like:
    >
    > '=============>>
    > Private Sub Worksheet_BeforeDoubleClick _
    > (ByVal Target As Range, Cancel As Boolean)
    > Call myMacro
    > End Sub
    > '<<=============
    >
    >
    > ---
    > Regards,
    > Norman
    >
    >
    > "Juggernath" <dvulinsp@mrgn.hr> wrote in message
    > news:dnmcu7$7gc$1@bagan.srce.hr...
    >>I have event procedure (click) in a worksheet (vba space) and trying to
    >>call a procedure in a module from a event procedure. I think I do not know
    >>exactly syntax for that...
    >>

    >
    >




  4. #4
    Norman Jones
    Guest

    Re: calling procedure

    Hi Juggernath,

    You should avoid naming a macro and a module with the same name as this will
    cause problems. You should rename the module or the procedure.


    ---
    Regards,
    Norman



    "Juggernath" <dvulinsp@mrgn.hr> wrote in message
    news:dnmf0v$29j$1@bagan.srce.hr...
    > It was very stupid question, sorry.
    > The problem was the procedure has the same name as the module (ZFAK)
    > So i have to callit like this: call ZFAK.ZFAK
    > Thanx, and sorry everbody
    >
    > "Norman Jones" <normanjones@whereforartthou.com> wrote in message
    > news:e4aak59$FHA.228@TK2MSFTNGP12.phx.gbl...
    >> Hi Juggernath,
    >>
    >> Try something like:
    >>
    >> '=============>>
    >> Private Sub Worksheet_BeforeDoubleClick _
    >> (ByVal Target As Range, Cancel As Boolean)
    >> Call myMacro
    >> End Sub
    >> '<<=============
    >>
    >>
    >> ---
    >> Regards,
    >> Norman
    >>
    >>
    >> "Juggernath" <dvulinsp@mrgn.hr> wrote in message
    >> news:dnmcu7$7gc$1@bagan.srce.hr...
    >>>I have event procedure (click) in a worksheet (vba space) and trying to
    >>>call a procedure in a module from a event procedure. I think I do not
    >>>know exactly syntax for that...
    >>>

    >>
    >>

    >
    >




+ 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