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

Top