LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 213
Default Use Macro from Source

Hi,

I have Workbooks A and B. Workbook A contains a macro, and Workbook B
contains the data. Usually, I have a command button (in one of the
worksheets) in Workbook B and have it call the macro in Workbook A to execute
the macro.

Is there a way I have a command button created in Workbook A, and when the
button is clicked, the macro will execute for Workbook B (assuming that both
workbooks are open in the same Excel window)? If possible, can someone help
me with the code? The code will be part of macro in Workbook A.

Thanks.
 
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
Macro Source is Changing dhstein Excel Discussion (Misc queries) 4 May 9th 09 04:46 PM
Update Chart Source (w/macro?) tx12345 Excel Worksheet Functions 0 January 4th 06 02:18 AM
Run a macro when a cell is changed by an outside source Jon[_21_] Excel Programming 3 November 9th 05 06:26 PM
Macro runs in source , but not when in Personal Macro Workbook Darin Kramer Excel Programming 1 September 13th 05 04:48 PM
Changing macro source Steve Boyer Excel Programming 1 July 25th 03 01:44 PM


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