Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 19
Default Sharing/Exporting a custom tool bar

Hi,
I have developed a custom toolbar that acts as a user interface to run
commonly used macros.

How can I export this toolbar and the corresponding macros to allow someone
else in my department for usage?


Please advise.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,290
Default Sharing/Exporting a custom tool bar

"Attach " the toolbar to the workbook (search help for "attach toolbar").
The macros should be in the workbook that has the toolbar attached.

In the ThisWorkbook code module add code to delete the toolbar when
the workbook closes and show it when the workbook opens....
'--
Private Sub Workbook_BeforeClose(Cancel As Boolean)
Application.CommandBars("Steve's Toolbar Name").Delete
End Sub
'--
Private Sub Workbook_Open()
Application.CommandBars("Steve's Toolbar Name").Visible = True
End Sub
'--
NOTE: that if you make any changes to the toolbar you have to remove
the existing toolbar and attach the revised one!
You can now send a copy of the workbook to others.

Jim Cone
San Francisco, USA
http://www.realezsites.com/bus/primitivesoftware
(Excel Add-ins / Excel Programming)




"Steve P"
wrote in message
Hi,
I have developed a custom toolbar that acts as a user interface to run
commonly used macros.

How can I export this toolbar and the corresponding macros to allow someone
else in my department for usage?


Please advise.
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
Adding custom list and text boxes to the custom tool bar from Excel C API Mousam Excel Discussion (Misc queries) 0 August 7th 07 09:19 AM
Adding custom list and text boxes to the custom tool bar from Excel C API Mousam Excel Programming 0 August 6th 07 10:05 AM
Sharing Custom Menus blriggscg Excel Discussion (Misc queries) 1 October 25th 05 05:42 PM
Macro & Tool Bar Sharing Juan[_3_] Excel Programming 2 February 24th 04 05:59 PM
Sharing custom forms ChrisJForeman Excel Programming 2 November 22nd 03 08:14 PM


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