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 MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Creating and calling modules in VB

Status
Not open for further replies.

Becx

Technical User
Jan 23, 2004
1
GB
I need to create a module in visual basic. I have created the module but dont know how to declare the items within the module or how to call the module(from the code in the form). Could someone help me with an example bit of code? The item in the module is to be " public sub Analyser" how would i define this in the module and then call it from "private sub analyser"?
 
If you want to call it from the form, you need to declare it as

PUBLIC Sub Analyser()
'do stuff
end sub

otherwise the form will not be able to see it.

To call it from the form, use either

Analyser
or Call Analyser ()

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top