Running a converted macro (vb module)

S

scott

I have converted a few macros that I would like to be able
to run from within vb. What is the appropriate way
to "call" or run a module from within vb? Thank you.
 
J

Joe Fallon

Whenever you need the Sub functionality you just write something like this
in your code:
SubName(Param1,Param2)

This assumes your Sub has 2 parameters.
e.g. if you have a Sub called Login(Name As String, Password As String)
Then you call it:
Login("Joe","myPwd")
 

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

Similar Threads

Create A Database with VB Code 1
Help running VB Code 1
Using code to edit modules 6
joining VB codes 0
Running Excel macro from VB 2
SQL statements 1
Strange files/modules in VB window 1
calling modules syntax 2

Top