Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Macro Button reference

I have a VBA macro (macro1) in "Master.xls" in which I created a button to
run the macro.
The macro runs and does it's thing. When it is done I do a File Save-As
"Test.XLS". I exit Excel and DO NOT save changes to "Master.xls" (I have
made it read-only).

I re-open "Master.xls" and click the button I created previously. For some
reason the button now references "Test.xls!Macro1". I want this button to
ALWAYS run the macro from "Master.xls". I have tried changing the marco
reference to "Master.xls!macro1".

I can not make this reference static for some reason.
Can it be done?



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 14
Default Macro Button reference

Is the button on a command bar, or on a sheetin Master.xls?


Greg Franke wrote:
I have a VBA macro (macro1) in "Master.xls" in which I created a button to
run the macro.
The macro runs and does it's thing. When it is done I do a File Save-As
"Test.XLS". I exit Excel and DO NOT save changes to "Master.xls" (I have
made it read-only).

I re-open "Master.xls" and click the button I created previously. For some
reason the button now references "Test.xls!Macro1". I want this button to
ALWAYS run the macro from "Master.xls". I have tried changing the marco
reference to "Master.xls!macro1".

I can not make this reference static for some reason.
Can it be done?


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Macro Button reference

Thanks for the response.

The button is on a command bar.
Should I try to embed it in a worksheet?

"OKROB" wrote in message
ups.com...
Is the button on a command bar, or on a sheetin Master.xls?


Greg Franke wrote:
I have a VBA macro (macro1) in "Master.xls" in which I created a button

to
run the macro.
The macro runs and does it's thing. When it is done I do a File Save-As
"Test.XLS". I exit Excel and DO NOT save changes to "Master.xls" (I have
made it read-only).

I re-open "Master.xls" and click the button I created previously. For

some
reason the button now references "Test.xls!Macro1". I want this button

to
ALWAYS run the macro from "Master.xls". I have tried changing the marco
reference to "Master.xls!macro1".

I can not make this reference static for some reason.
Can it be done?




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
How to reference MSNStockQuote button within a macro tfrentz Excel Worksheet Functions 2 February 26th 07 03:13 PM
How to I reference in VB a button used to run an Excel macro VicWestVan Excel Programming 3 July 25th 06 06:37 PM
Macro Relative reference button greyed out. J Shrimps, Jr. Excel Programming 1 March 9th 06 03:40 AM
Make macro-button sheet reference relative Perez Excel Programming 3 May 20th 05 10:38 AM
relative reference button on end macro menu RobC[_2_] Excel Programming 4 March 2nd 04 09:24 PM


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