ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Macro Toolbar Button (https://www.excelbanter.com/excel-programming/311859-macro-toolbar-button.html)

GARY

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

Jim Rech

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




All times are GMT +1. The time now is 07:21 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com