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

I created a custom toolbar (Excel 2002, Win XP) and it
works on my pc. If I email the file the user gets a Run
Time Error message when opening the workbook. (Article
291068 Visible property does not apply to all commandbars -
Can't move focus to the control because it is invisible,
not enabled or of a type that does not accept the focus.)
The MS knowledge base acknowledges this is a problem but
does not seem to offer a solution.

Is there a way to save/send a file so other's can use a
custom toolbar?

TIA
Tom

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 473
Default Custom Toolbar

Tom Ulincy wrote:
If I email the file the user gets a Run
Time Error message when opening the workbook.

The way to use custom toolbars is:
a) attach the toolbar to your workbook (View / Toolbars / Customize /
Attach)
b) in your workbook's BeforeClose procedure (in ThisWorkbook module),
delete the toolbar from the user's customisation

Private Sub Workbook_BeforeClose(Cancel As Boolean)
On Error Resume Next
Application.Commandbars("MyBar").Delete
End Sub

Bill Manville
MVP - Microsoft Excel, Oxford, England
No email replies please - reply in newsgroup


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
custom toolbar dml Excel Discussion (Misc queries) 1 March 17th 10 02:02 PM
Custom VBA toolbar donwb Excel Discussion (Misc queries) 0 January 7th 10 02:05 PM
Custom Toolbar Enyaw Excel Discussion (Misc queries) 1 October 9th 09 01:10 PM
Custom Toolbar hfazal Excel Discussion (Misc queries) 2 September 15th 07 01:32 PM
saving toolbar buttons on custom toolbar Paul James Excel Programming 12 August 6th 03 08:28 AM


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