call sub inside other sub

  • Thread starter Thread starter bbussoloti
  • Start date Start date
B

bbussoloti

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
 
Try your pseudo code. I bet it'll work.


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
 
Hi,

sub Proc1()
'do something
Proc2 argument1, argument2, ...
'or use the Call keyword
Call Proc2(argument1, argument2, ...)
end sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top