Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default CommandBar not Visible on Chart Pages

How do I get a commandbar to appear on all worksheet and chart pages?
(The following code creates MyMenu visible only from worksheets, but
not from chart pages.)

Thanks for your thoughts.

Dim cp_NewMenu As CommandBarPopup
Dim i_HelpIndex As Integer
i_HelpIndex = CommandBars(1).Controls("&Help").Index
Set cp_NewMenu = CommandBars(1) _
.Controls.Add(Type:=msoControlPopup, _
Befo=i_HelpIndex, Temporary:=True)
cp_NewMenu.Caption = "&My Menu"

Phil

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default CommandBar not Visible on Chart Pages

Hi phil

Run you code also for number 2
CommandBars(2)...................

--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"Phil" wrote in message oups.com...
How do I get a commandbar to appear on all worksheet and chart pages?
(The following code creates MyMenu visible only from worksheets, but
not from chart pages.)

Thanks for your thoughts.

Dim cp_NewMenu As CommandBarPopup
Dim i_HelpIndex As Integer
i_HelpIndex = CommandBars(1).Controls("&Help").Index
Set cp_NewMenu = CommandBars(1) _
.Controls.Add(Type:=msoControlPopup, _
Befo=i_HelpIndex, Temporary:=True)
cp_NewMenu.Caption = "&My Menu"

Phil

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default CommandBar not Visible on Chart Pages

There are two separate main menu bars

Worksheet Menu Bar index 1
Chart Menu Bar index 2

When a chart is active, then the Chart Menu Bar replaces the Worksheet Menu
Bar. So you would have to make modifications to both.

--
Regards,
Tom Ogilvy


"Phil" wrote:

How do I get a commandbar to appear on all worksheet and chart pages?
(The following code creates MyMenu visible only from worksheets, but
not from chart pages.)

Thanks for your thoughts.

Dim cp_NewMenu As CommandBarPopup
Dim i_HelpIndex As Integer
i_HelpIndex = CommandBars(1).Controls("&Help").Index
Set cp_NewMenu = CommandBars(1) _
.Controls.Add(Type:=msoControlPopup, _
Befo=i_HelpIndex, Temporary:=True)
cp_NewMenu.Caption = "&My Menu"

Phil


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default CommandBar not Visible on Chart Pages

Tom and Ron:

Thank you. That worked.

Phil

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
why aren't my headers and footers visible on the pages? Shane Devenshire[_2_] Excel Discussion (Misc queries) 0 February 26th 09 10:43 PM
why aren't my headers and footers visible on the pages? iowa8383 Excel Discussion (Misc queries) 1 February 26th 09 08:59 PM
Visible pages mich Excel Discussion (Misc queries) 2 January 13th 09 09:39 PM
Commandbar not visible in a graphic leglouton Excel Programming 2 July 19th 05 04:59 PM
ActiveX Property Pages are not visible ChristianH Excel Programming 0 July 14th 04 08:04 AM


All times are GMT +1. The time now is 01:53 PM.

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"