PC Review


Reply
Thread Tools Rate Thread

call verses run

 
 
Brett
Guest
Posts: n/a
 
      10th Jun 2009
Apart from the way arguments are set out, and whether or not a return value
is required, is there any other difference between "Call" and "Run" please?
Regards, Brett
 
Reply With Quote
 
 
 
 
Jacob Skaria
Guest
Posts: n/a
 
      10th Jun 2009
The best place is to refer is VBA help.

RUN is a 'Method' which allows values to be passed but not named variables
or objects. The objects will be converted to its value. RUN method returns
whatever the macro returns.

Meanwhile CALL is a 'statement' ; if used will transfer the control to the
procedure/function. Even without using CALL you can still call the procedure
but if you use the Call keyword then that requires arguments to be passed
enclosed in parentheses.

CALL MyProc(arg1,arg2)
OR
MyProc arg1,arg2

If this post helps click Yes
---------------
Jacob Skaria


"Brett" wrote:

> Apart from the way arguments are set out, and whether or not a return value
> is required, is there any other difference between "Call" and "Run" please?
> Regards, Brett

 
Reply With Quote
 
Brett
Guest
Posts: n/a
 
      10th Jun 2009
Thanks Jeff

"jeffrey.ccs" wrote:

>
> Hi
>
> The main difference for me from a practical standpoint is that 'Call'
> does not permit the use of variables in a macro name and 'Run' does. Not
> applicable much but useful to know if you need it.
>
> Regards
>
> Jeff
>
>
> --
> jeffrey.ccs
> ------------------------------------------------------------------------
> jeffrey.ccs's Profile: http://www.thecodecage.com/forumz/member.php?userid=313
> View this thread: http://www.thecodecage.com/forumz/sh...d.php?t=105129
>
>

 
Reply With Quote
 
Brett
Guest
Posts: n/a
 
      10th Jun 2009
Thanks again Jacob.

"Jacob Skaria" wrote:

> The best place is to refer is VBA help.
>
> RUN is a 'Method' which allows values to be passed but not named variables
> or objects. The objects will be converted to its value. RUN method returns
> whatever the macro returns.
>
> Meanwhile CALL is a 'statement' ; if used will transfer the control to the
> procedure/function. Even without using CALL you can still call the procedure
> but if you use the Call keyword then that requires arguments to be passed
> enclosed in parentheses.
>
> CALL MyProc(arg1,arg2)
> OR
> MyProc arg1,arg2
>
> If this post helps click Yes
> ---------------
> Jacob Skaria
>
>
> "Brett" wrote:
>
> > Apart from the way arguments are set out, and whether or not a return value
> > is required, is there any other difference between "Call" and "Run" please?
> > Regards, Brett

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Wm verses WLM =?Utf-8?B?VGFpbHNwaW5EQVM=?= Windows Vista Mail 1 8th Nov 2007 04:45 PM
XP verses ME Yvonne Windows XP General 19 19th Jun 2004 05:02 PM
C# verses VB.Net Which Way to go Robert Lario Microsoft VB .NET 19 10th Nov 2003 12:29 PM
C# verses VB.Net Which Way to go Robert Lario Microsoft C# .NET 13 24th Oct 2003 08:49 PM
C# verses VB.Net Which Way to go Robert Lario Microsoft VB .NET 14 24th Oct 2003 08:49 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:11 PM.