modules that run modules

  • Thread starter Thread starter jim
  • Start date Start date
J

jim

Hello,
I have two modules in the same project. I would like to
execute the second module at the end of the first module.
I know I can put both subs in the same module but I would
like to keep the modules seperate. Does anyone know of a
way I can execute a module within a module?

Jim
 
Hi
you won't call a module but a sub or function within a module. Just use
something like

sub main_macro()
'do something
second_macro
end sub

'in a separate module
sub second_macro()
'do something else
end sub
 
Hi Jim

You can do this

Sub test()
'yourcode
OtherMacroName
End Sub
 

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

Back
Top