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

Hi

I have designed a custom toolbar that I want to display whenever a specific
workbook is opened and then turned off again when the workbook closes. Does
anyone know how to put that into the On Open event of the workbook? Thanks.
--
Sharon
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 336
Default Custom Toolbars?

You can use the recorder to find the code:

Application.CommandBars("[name]").Visible = True 'to make visible
Application.CommandBars("[name]").Visible = False 'to make invisible


"Sharon" wrote:

Hi

I have designed a custom toolbar that I want to display whenever a specific
workbook is opened and then turned off again when the workbook closes. Does
anyone know how to put that into the On Open event of the workbook? Thanks.
--
Sharon

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 183
Default Custom Toolbars?

Thanks Martin - did the trick!!
--
Sharon


"Martin" wrote:

You can use the recorder to find the code:

Application.CommandBars("[name]").Visible = True 'to make visible
Application.CommandBars("[name]").Visible = False 'to make invisible


"Sharon" wrote:

Hi

I have designed a custom toolbar that I want to display whenever a specific
workbook is opened and then turned off again when the workbook closes. Does
anyone know how to put that into the On Open event of the workbook? Thanks.
--
Sharon

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Custom Toolbars?

Hello;

I had made this procedure same next exemple:

Private Sub Workbook_BeforeClose(Cancel As Boolean)
Application.CommandBars("Menu Take Up").Visible = False
End Sub

Private Sub Workbook_Open()
Application.CommandBars("Menu Take Up").Visible = True
End Sub

It´s running well. But when I save to another PC with Excell2007 the toolbar
doesn´t apearence.
Anybody know why it´s happen?
Thanks.


"Sharon" escreveu:

Thanks Martin - did the trick!!
--
Sharon


"Martin" wrote:

You can use the recorder to find the code:

Application.CommandBars("[name]").Visible = True 'to make visible
Application.CommandBars("[name]").Visible = False 'to make invisible


"Sharon" wrote:

Hi

I have designed a custom toolbar that I want to display whenever a specific
workbook is opened and then turned off again when the workbook closes. Does
anyone know how to put that into the On Open event of the workbook? Thanks.
--
Sharon


-----------------------------------------------------------------------------
Our Peering Groups change
Visit : http://spacesst.com/peerin
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 Toolbars Tami Excel Worksheet Functions 1 August 7th 09 04:14 AM
Custom Toolbars..? Andrew[_9_] Excel Discussion (Misc queries) 2 January 20th 09 12:54 AM
Custom toolbars Ian Anderson Excel Discussion (Misc queries) 0 February 18th 06 08:04 PM
Custom Toolbars blackfish Excel Programming 1 December 23rd 05 09:32 PM
Custom ToolBars Julian[_3_] Excel Programming 1 January 8th 04 06:22 PM


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