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


I am trying to write VB code to make custom toolbars and have been
somewhat successful. Is there a way to view the changes you have made
to the custom toolbar without having to save, close and restart the
file?


--
blackfish
------------------------------------------------------------------------
blackfish's Profile: http://www.excelforum.com/member.php...o&userid=29880
View this thread: http://www.excelforum.com/showthread...hreadid=495839

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

blackfish,

I'm not sure how you are making your toolbars, but a common approach is to
delete the toolbar before you create it. If you do this then you should be
able to just run the toolbar making subroutine, like this:

Sub test()
Dim cbar As CommandBarPopup

On Error Resume Next
CommandBars("Worksheet Menu Bar").Controls("test").Delete
On Error GoTo 0

Set cbar = CommandBars("Worksheet Menu
Bar").Controls.Add(Type:=msoControlPopup, temporary:=True)
cbar.Caption = "test"
End Sub

hth,

Doug

"blackfish" wrote
in message ...

I am trying to write VB code to make custom toolbars and have been
somewhat successful. Is there a way to view the changes you have made
to the custom toolbar without having to save, close and restart the
file?


--
blackfish
------------------------------------------------------------------------
blackfish's Profile:

http://www.excelforum.com/member.php...o&userid=29880
View this thread: http://www.excelforum.com/showthread...hreadid=495839



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 Menus and Toolbars TedZee Excel Discussion (Misc queries) 1 July 6th 07 12:16 AM
Custom toolbars Ian Anderson Excel Discussion (Misc queries) 0 February 18th 06 08:04 PM
Custom ToolBars Julian[_3_] Excel Programming 1 January 8th 04 06:22 PM


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