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

Thanks Bill. I have never thought of the hide feature in Excel. I learned
something.

"Bill Renaud" wrote:

<<...how do I hide the Workbook A?

I use Excel 2000, so I use the Window|Hide command. It may now be in a
different menu for you, if you are using Excel 2007.

<<I will have both Workbooks A and B opened in the same Excel window.

This is normal. Workbook A (macros) will be hidden. Workbook B (data) will
be visible.

<<I will have a command button in one of the worksheets in Workbook A...

No. If you are using Excel 2007 (which now has ribbons instead of
CommandBars), you will have to figure out how to add a custom toolbar to
the Excel environment, so you can place your button on this toolbar and
attach it to Workbook A.

<<...when I click on the button, it will execute the macro in Workbook B.

You mean the macro (in Workbook A) will process the DATA in Workbook B.
There is NO macro in Workbook B!

<<I won't be able to use the code "Workbooks ("Workbook B").Activate"
because the Workbook B name will be variable.

True. This is why you set a reference to the ActiveWorkbook almost the very
first thing in your macro, as I suggested in my previous post.

--
Regards,
Bill Renaud




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
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 01:44 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"