#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default macro to run macros

I would like to develop a macro to run multiple macros. for example, I have 5
macros (VBA) for a workbook. How do I write a macro that runs all of the
macros? I cannot combine them into 1 macro because they exceed the memory
limit.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 95
Default macro to run macros

I guess the real question is why you exceed the memory limit......
Even if you call 5 macro's from a header macro, the macro's will still be in
memory even if you close the workbook that the macro is attached to. The
macro's only disappear from memory when you close xls.

So, back to the main question: why do you exceed the memory limit. Possible
option: the macro copies workbook entries, and you forget to clear these from
memory, or you have run your macro's several time in break mode without a
full memory clear.
Quick test: do you have this memory limit when you run the code after a PC
restart? If not, your code is the problem, not the memory....

"wamstrdad" wrote:

I would like to develop a macro to run multiple macros. for example, I have 5
macros (VBA) for a workbook. How do I write a macro that runs all of the
macros? I cannot combine them into 1 macro because they exceed the memory
limit.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,646
Default macro to run macros

What about something like this:

Sub Callermacro()
call Macro1
call Macro2
call Macro3
call Macro4
call Macro5
End Sub

Regards,
Stefi

€˛wamstrdad€¯ ezt Ć*rta:

I would like to develop a macro to run multiple macros. for example, I have 5
macros (VBA) for a workbook. How do I write a macro that runs all of the
macros? I cannot combine them into 1 macro because they exceed the memory
limit.

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default macro to run macros

Sub RunAll()
Call Sub1
Call Sub2
Call Sub3
...
End Sub
Sub Sub1()
...
End sub
....

wamstrdad wrote:

I would like to develop a macro to run multiple macros. for example, I have 5
macros (VBA) for a workbook. How do I write a macro that runs all of the
macros? I cannot combine them into 1 macro because they exceed the memory
limit.


--

Dave Peterson
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
Run macros macro blazzzercat via OfficeKB.com Excel Discussion (Misc queries) 3 February 23rd 07 06:40 PM
Enable Macros with a Macro! Mark[_2_] Excel Discussion (Misc queries) 3 February 21st 07 06:26 PM
Hide macros from Alt-F8 macro list Bill_S Excel Discussion (Misc queries) 2 January 4th 07 09:05 PM
Macro Msg. when file has no macros Stilla Excel Worksheet Functions 2 February 9th 06 03:10 PM
macro warning - but no macros GJR3599 Excel Discussion (Misc queries) 1 April 13th 05 08:15 PM


All times are GMT +1. The time now is 04:35 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"