Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Module

Status
Not open for further replies.

lmacias

MIS
May 16, 2002
2
US
How can I get a module to call 3 ohter modules?
 
Hi.

Modules can't be called. A module is a container which can hold Subs, Function, Properties etc. The module can be a standard or a class.

Here is a quick example of calling subs in a module

Add a standard module to your project and add this code

*****************************************
Option Explicit

Public Sub One()
MsgBox "In Sub One"
End Sub
Public Sub Two()
MsgBox "In Sub Two"
End Sub

Public Sub Three()
MsgBox "In Sub Three"
End Sub

*******************************

Then add the following code to the form_load event of the form:

********************************

Private Sub Form_Load()

'These lines call the subs individually.
'Step through the code to see how
Call One
Call Two
Call Three

End Sub

********************************

Also might be worth searching MSDN for a more detailed explanation

Hope it helps To get what you want, you have to go through the crap, but to get through the crap you have to know what you want... [rockband]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top