LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default command bars in charts

Hi,
I would like to modify some of the right click command bar menus in
charts. The following code runs without errors and modifies some of
the command bars (specifically Series and Plot Area and Inactive
Chart) but not the others. Do I have to unprotect something to modify
the others?

Thanks,
Bob




For i = 1 To 10
If i = 1 Then commandBarName = "Series"
If i = 2 Then commandBarName = "Plot Area"
If i = 3 Then commandBarName = "Floor and Walls"
If i = 4 Then commandBarName = "Trendline"
If i = 5 Then commandBarName = "Chart"
If i = 6 Then commandBarName = "Format Data Series"
If i = 7 Then commandBarName = "Format Axis"
If i = 8 Then commandBarName = "Format Legend Entry"
If i = 9 Then commandBarName = "Format Legend Entry"
If i = 10 Then commandBarName = "Inactive Chart"



Set cb = CommandBars(commandBarName)
Set cbc = cb.Controls.Add
With cbc
.Caption = commandBarName & " Menu "
.TooltipText = "very cool"

End With

Next

 
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
Command Bars KneeDown2Up Excel Discussion (Misc queries) 4 January 16th 07 05:43 PM
Command Bars Bill[_30_] Excel Programming 3 October 6th 05 07:25 PM
Command Bars Bill[_30_] Excel Programming 1 October 5th 05 08:16 PM
Command Bars Neil Hopkinson[_2_] Excel Programming 3 August 19th 05 09:53 AM
Command Bars nath Excel Programming 2 August 23rd 04 01:45 PM


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