![]() |
modules that run modules
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 |
modules that run modules
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 |
modules that run modules
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 |
All times are GMT +1. The time now is 03:47 AM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com