Running a converted macro (vb module)

  • Thread starter Thread starter scott
  • Start date Start date
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.
 
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

Help running VB Code 1
Create A Database with VB Code 1
Modules Corrupted 2
Using code to edit modules 6
joining VB codes 0
SQL statements 1
Running Excel macro from VB 2
Current module name? 9

Back
Top