Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Programming / November 2007

Tip: Looking for answers? Try searching our database.

call sub inside other sub

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
bbussoloti - 29 Nov 2007 18:29 GMT
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
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.