#1   Report Post  
Posted to microsoft.public.excel.newusers
andy_
 
Posts: n/a
Default macros


Hi,

I have recorded a number of macros in a worksheet,
How can i combine these macros together, instead of running each macro
i want to just run one macro.
It was too big of a job to record one big macro.

Thanks


--
andy_
------------------------------------------------------------------------
andy_'s Profile: http://www.excelforum.com/member.php...o&userid=32218
View this thread: http://www.excelforum.com/showthread...hreadid=519702

  #2   Report Post  
Posted to microsoft.public.excel.newusers
Kevin B
 
Posts: n/a
Default macros

Create a new procedure in any of the existing modules you may have in your
work book and just list the names of the macros you wish to run, in the order
that they are to be run in.

Sub RunEmAll()

MacroName1
MacroName2
MacroName3

End Sub

Then run your new procedure to execute them all.



--
Kevin Backmann


"andy_" wrote:


Hi,

I have recorded a number of macros in a worksheet,
How can i combine these macros together, instead of running each macro
i want to just run one macro.
It was too big of a job to record one big macro.

Thanks


--
andy_
------------------------------------------------------------------------
andy_'s Profile: http://www.excelforum.com/member.php...o&userid=32218
View this thread: http://www.excelforum.com/showthread...hreadid=519702


  #3   Report Post  
Posted to microsoft.public.excel.newusers
andy_
 
Posts: n/a
Default macros


Ok, now i have just lost my macros, It said something about
personal.xls needs to be open in the startup, but cant find it.....


--
andy_
------------------------------------------------------------------------
andy_'s Profile: http://www.excelforum.com/member.php...o&userid=32218
View this thread: http://www.excelforum.com/showthread...hreadid=519702

  #4   Report Post  
Posted to microsoft.public.excel.newusers
Steve Walton
 
Posts: n/a
Default macros

On Tue, 7 Mar 2006 05:40:30 -0800, Kevin B
wrote:

Create a new procedure in any of the existing modules you may have in your
work book and just list the names of the macros you wish to run, in the order
that they are to be run in.

Sub RunEmAll()

MacroName1
MacroName2
MacroName3

End Sub

Then run your new procedure to execute them all.


How do you refer to macros in a different module and or .xls file

--

Steve
  #5   Report Post  
Posted to microsoft.public.excel.newusers
David McRitchie
 
Posts: n/a
Default macros

referring to a macro in a different module is not normally a problem although
it is possible to have a macro with the same name in two different modules and
refer to the specific macro -- not recommended.

To refer to a macro in another workbook, see
http://www.mvps.org/dmcritchie/excel...ll.htm#another
that also shows how to be specify a module

---
HTH,
David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001]
My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm
Search Page: http://www.mvps.org/dmcritchie/excel/search.htm

"Steve Walton" wrote in message ...
On Tue, 7 Mar 2006 05:40:30 -0800, Kevin B
wrote:

Create a new procedure in any of the existing modules you may have in your
work book and just list the names of the macros you wish to run, in the order
that they are to be run in.

Sub RunEmAll()

MacroName1
MacroName2
MacroName3

End Sub

Then run your new procedure to execute them all.


How do you refer to macros in a different module and or .xls file

--

Steve





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
Excel crashes while opening excel file imbeddied with macros ct2147 Excel Discussion (Misc queries) 0 December 30th 05 09:05 PM
calling a series macros with a marco gerry405 Excel Discussion (Misc queries) 0 October 18th 05 01:23 PM
Enabling macros Peter M Excel Discussion (Misc queries) 3 February 7th 05 10:57 PM
Transferring toolbars and macros to other computers Darrell Excel Discussion (Misc queries) 1 January 19th 05 12:21 AM
The available macros list in XL; how to suppress filename from showing KR Excel Discussion (Misc queries) 1 January 10th 05 07:20 PM


All times are GMT +1. The time now is 01:38 AM.

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"