Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
jim jim is offline
external usenet poster
 
Posts: 19
Default 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
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default 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


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default 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



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Why Would Add-In Modules Not Be Accessible? Edwin Kelly Excel Discussion (Misc queries) 2 June 23rd 09 06:11 PM
VB Modules dhstein Excel Discussion (Misc queries) 9 November 8th 08 09:46 PM
Help with modules. Cloudy New Users to Excel 1 June 17th 08 10:10 AM
modules libby Excel Programming 4 November 22nd 03 01:34 PM
Class Modules vs Modules Jeff Marshall Excel Programming 2 September 28th 03 07:57 PM


All times are GMT +1. The time now is 11:42 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"