Hi
i´d like to know how to call a sub inside other sub.
If i have a sub that a user can trigger by clicking a button, i´d like to
call another sub in the middle of the code. In a pseudo-code example that
should look like:
sub Proc1()
'do something
call Proc2
'do something else
end sub
Dave Peterson - 29 Nov 2007 18:35 GMT
Try your pseudo code. I bet it'll work.
> Hi
> i´d like to know how to call a sub inside other sub.
[quoted text clipped - 7 lines]
> 'do something else
> end sub

Signature
Dave Peterson
Dale Fye - 29 Nov 2007 18:39 GMT
That should work just fine.
Dale

Signature
Don''t forget to rate the post if it was helpful!
Email address is not valid.
Please reply to newsgroup only.
> Hi
> i´d like to know how to call a sub inside other sub.
[quoted text clipped - 7 lines]
> 'do something else
> end sub
sebastienm - 29 Nov 2007 18:40 GMT
Hi,
sub Proc1()
'do something
Proc2 argument1, argument2, ...
'or use the Call keyword
Call Proc2(argument1, argument2, ...)
end sub

Signature
Regards,
Sébastien
<http://www.ondemandanalysis.com>
> Hi
> i´d like to know how to call a sub inside other sub.
[quoted text clipped - 7 lines]
> 'do something else
> end sub