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

I am using Excel 2002.

I have written a macro, assigned it a custom button and
put the button on my toolbar. No problems here, it all
works as planned. However, this same macro button shows
up on every workbook I open. Is there a way to have this
button only show up on the specific wookbook it is
intended for and not all others?

Much Thanks,
Gary
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,718
Default Macro Toolbar Button

However, this same macro button shows up on every workbook I open.

Toolbuttons belong to Excel, not to a specific workbook (even if they are
attached to a workbook). However, you can get the result you want with some
fancy macro work. It's possible to have code run when your workbook is
activated and deactivated that can make the toolbutton hide/show, etc.

http://support.microsoft.com/default...61&Product=xlw

http://www.cpearson.com/excel/events.htm


--
Jim Rech
Excel MVP
"Gary" wrote in message
...
|I am using Excel 2002.
|
| I have written a macro, assigned it a custom button and
| put the button on my toolbar. No problems here, it all
| works as planned. However, this same macro button shows
| up on every workbook I open. Is there a way to have this
| button only show up on the specific wookbook it is
| intended for and not all others?
|
| Much Thanks,
| Gary


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 button on toolbar Daniel Charts and Charting in Excel 0 August 27th 07 08:56 PM
Button with macro in toolbar Daniel Charts and Charting in Excel 1 August 25th 07 02:39 AM
Command Button for Macro on a Toolbar Office Junior[_2_] Excel Discussion (Misc queries) 7 May 12th 07 04:48 PM
Macro button on toolbar Lesley Excel Discussion (Misc queries) 2 August 28th 06 07:32 PM
Toolbar button To Run a Macro? jon Excel Programming 1 November 17th 03 07:07 PM


All times are GMT +1. The time now is 03:44 AM.

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"