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

how do i create a macro in excel to run other macros in different excel
workbooks?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default macros


In tools options under the general tab there's a secrtion called
Alternative startup file location.

set that to (for example) c:\my documents


Then....

create a new work book
and then save it into that directory and call it "macros.xls",


Create a new macro when it asks for it's storage location (dependant on
how you create a macro) save is into the spreadsheet you've just created
(ie macros.xls).

once done resave it *but* before you do save it hide the workbook
(window - hide).


This way everytime you open a new (or existing) spreadsheet the
macro(s) will available to you.


When you need to add or change a macro to the "macros.xls" spreadsheet
you'll need to unhide it, amke the necessary changes, re-hide and
save.


HTH, if you need to have anything more clearly explained please ask


Mr_Ben


--
mr_ben
------------------------------------------------------------------------
mr_ben's Profile: http://www.excelforum.com/member.php...o&userid=37106
View this thread: http://www.excelforum.com/showthread...hreadid=569369

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

Option Explicit
Sub testme02()
Dim OtherWkbk As Workbook
Set OtherWkbk = Workbooks("book1.xls")
Application.Run "'" & OtherWkbk.Name & "'!macronamehere"
End Sub

Marie-Therese wrote:

how do i create a macro in excel to run other macros in different excel
workbooks?


--

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
Hide Macro's in Toolbar / Macro's list sparx Excel Discussion (Misc queries) 2 May 6th 06 08:53 PM
how do I run excel 4.0 macros on excel 2000 RodolfoDallas Excel Discussion (Misc queries) 1 March 12th 06 03:14 AM
Excel crashes while opening excel file imbeddied with macros ct2147 Excel Discussion (Misc queries) 0 December 30th 05 09:05 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


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