Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 15
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default 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" wrote in message
...
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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 15
Default 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" wrote in message
...
Hi Juggernath,

Try something like:

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


---
Regards,
Norman


"Juggernath" wrote in message
...
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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default 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" wrote in message
...
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" wrote in message
...
Hi Juggernath,

Try something like:

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


---
Regards,
Norman


"Juggernath" wrote in message
...
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
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Calling sub procedure Yossi[_2_] Excel Programming 2 August 21st 05 02:01 PM
Calling a procedure in a procedure Norman Jones Excel Programming 8 August 20th 04 07:53 PM
Calling a procedure in a procedure N10 Excel Programming 2 August 18th 04 12:49 AM
Calling a procedure in a procedure Don Guillett[_4_] Excel Programming 1 August 17th 04 11:31 PM
Calling a .Net Procedure from a Macro Scott Eguires Excel Programming 0 December 10th 03 10:35 PM


All times are GMT +1. The time now is 12:22 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"