Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 -- Regards Frank Kabel Frankfurt, Germany jim wrote: 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 |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Jim
You can do this Sub test() 'yourcode OtherMacroName End Sub -- Regards Ron de Bruin http://www.rondebruin.nl "jim" wrote in message ... 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 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Why Would Add-In Modules Not Be Accessible? | Excel Discussion (Misc queries) | |||
VB Modules | Excel Discussion (Misc queries) | |||
Help with modules. | New Users to Excel | |||
modules | Excel Programming | |||
Class Modules vs Modules | Excel Programming |