Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 138
Default Run macro from an excel file from another one

Is it possible to run a macro from an excel file via another one.

i.e. I have the files worksheet1 and workbook2. Workbook 2 has a macro
called test.

How do I call this from Workbook1?

Bruce
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 221
Default Run macro from an excel file from another one

Try this, Bruce:
http://www.vbaexpress.com/kb/getarticle.php?kb_id=279
*******************
~Anne Troy

www.OfficeArticles.com
www.MyExpertsOnline.com


"Bruce" wrote in message
...
Is it possible to run a macro from an excel file via another one.

i.e. I have the files worksheet1 and workbook2. Workbook 2 has a macro
called test.

How do I call this from Workbook1?

Bruce



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,120
Default Run macro from an excel file from another one

Application.Run "Workbook1.xls!Test"

--
HTH

Bob Phillips

"Bruce" wrote in message
...
Is it possible to run a macro from an excel file via another one.

i.e. I have the files worksheet1 and workbook2. Workbook 2 has a macro
called test.

How do I call this from Workbook1?

Bruce



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
internet connection via excel macro at timed intervels & save data to excel file. Sam Excel Worksheet Functions 1 July 22nd 07 06:08 AM
Add macro to Excel-file Arne Hegefors Excel Discussion (Misc queries) 2 January 10th 07 09:08 PM
Excel '00, 1st file has macros, how to stop macro in 2nd file? kaptandrews Excel Discussion (Misc queries) 0 May 24th 06 03:07 PM
VBA Excel Macro - One File Auto Create Multiple Excel Worksheets! jsamples25 Excel Programming 0 June 22nd 05 11:16 PM
ASP: Open Excel File with Macro, Allow Macro to run, and then save delgados129 Excel Programming 0 March 10th 05 09:35 PM


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

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

About Us

"It's about Microsoft Excel"