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")
 
Back
Top