ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Chaining 6 macro modules (https://www.excelbanter.com/excel-discussion-misc-queries/183730-chaining-6-macro-modules.html)

sherif

Chaining 6 macro modules
 
I have six separate VBA macro modules and I need a way to run them one after
the other instead of clicking on each one, can I create a seventh macro to
chain them together?
Thank you very much


Ixtreme

Chaining 6 macro modules
 
On Apr 15, 6:23*am, Sherif wrote:
I have six separate VBA macro modules and I need a way to run them one after
the other instead of clicking on each one, can I create a seventh macro to
chain them together?
Thank you very much


You could call them in your seventh macro like
Sub seven

'call macro 1'
'call macro 2'
end sub

etc

Jim Rech[_2_]

Chaining 6 macro modules
 
No quotes. "Call" is optional.

--
Jim
"Ixtreme" wrote in message
...
On Apr 15, 6:23 am, Sherif wrote:
I have six separate VBA macro modules and I need a way to run them one
after
the other instead of clicking on each one, can I create a seventh macro to
chain them together?
Thank you very much


You could call them in your seventh macro like
Sub seven

'call macro 1'
'call macro 2'
end sub

etc



sherif

Chaining 6 macro modules
 
Thank you very much it worked

"Ixtreme" wrote:

On Apr 15, 6:23 am, Sherif wrote:
I have six separate VBA macro modules and I need a way to run them one after
the other instead of clicking on each one, can I create a seventh macro to
chain them together?
Thank you very much


You could call them in your seventh macro like
Sub seven

'call macro 1'
'call macro 2'
end sub

etc



All times are GMT +1. The time now is 10:07 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com