Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
JB JB is offline
external usenet poster
 
Posts: 115
Default Macro to fire button in external file

I have two files...I have a macro in file #1 that I need to 'click' a button
(to run a macro) in file #2. Any suggestions?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,355
Default Macro to fire button in external file

Why can't you just run the macro in File2 from File 1

I believe the syntax is

Application.Run ("File2.xls!Macro1")

--
HTH,
Barb Reinhardt

If this post was helpful to you, please click YES below.



"JB" wrote:

I have two files...I have a macro in file #1 that I need to 'click' a button
(to run a macro) in file #2. Any suggestions?

  #3   Report Post  
Posted to microsoft.public.excel.programming
JB JB is offline
external usenet poster
 
Posts: 115
Default Macro to fire button in external file

I am somewhat new to this. The functionality in File2 is tied to the button.
It's not a named macro.

Is there anyway to 'activate' the button via a macro in File 1?

thanks,
"Barb Reinhardt" wrote:

Why can't you just run the macro in File2 from File 1

I believe the syntax is

Application.Run ("File2.xls!Macro1")

--
HTH,
Barb Reinhardt

If this post was helpful to you, please click YES below.



"JB" wrote:

I have two files...I have a macro in file #1 that I need to 'click' a button
(to run a macro) in file #2. Any suggestions?

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
Execute an external file in Active X control Button KJ MAN Excel Programming 0 September 11th 08 02:10 PM
Macro to insert a hyperlink to external file dadouza Excel Discussion (Misc queries) 2 August 1st 08 01:27 AM
Macro to fire upon opening file David P. Excel Discussion (Misc queries) 3 June 26th 08 09:12 PM
keypress to fire command button mikewild2000[_21_] Excel Programming 7 February 1st 04 04:33 PM
Use macro code from external xls file Angus Comber[_2_] Excel Programming 1 November 10th 03 11:10 PM


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