LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #17   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 47
Default Assigning macros to buttons on a custom toolbar

Great help, Mike. Now maybe I can get this albatross out of my hair.
Thanks for your time.
Jack

"mike" wrote:

Actually there is. Your toolbar will remain unless you programmatically
remove it. I would recommend activating the toolbar on open as removing
it on close.

In Auto_Open add the following just before you end the sub

Set myBar = CommandBars("toolbar_name")
myBar.Enabled = True

In Auto_Close add the following

Set myBar = CommandBars("toolbar_name")
myBar.Enabled = False


 
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
Assigning Macros to Toolbar buttons JMay Excel Discussion (Misc queries) 1 July 24th 07 07:22 PM
Assigning Macros to Buttons Christine Excel Discussion (Misc queries) 1 May 11th 06 09:42 PM
Assigning Macros to Toolbar buttons VBA Fun Excel Programming 2 May 25th 05 12:44 PM
custom toolbar buttons are saved where? Excel loads twice bymistake and all my custom toolbar buttons get gone!!! Kevin Waite Excel Programming 2 March 3rd 04 03:31 PM
assigning macros to several custom buttons Greg Wilson[_3_] Excel Programming 0 August 12th 03 11:52 PM


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