PC Review


Reply
Thread Tools Rate Thread

CommandBar not Visible on Chart Pages

 
 
Phil
Guest
Posts: n/a
 
      11th Apr 2007
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, _
Before:=i_HelpIndex, Temporary:=True)
cp_NewMenu.Caption = "&My Menu"

Phil

 
Reply With Quote
 
 
 
 
Ron de Bruin
Guest
Posts: n/a
 
      11th Apr 2007
Hi phil

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

--

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


"Phil" <(E-Mail Removed)> wrote in message news:(E-Mail Removed)...
> 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, _
> Before:=i_HelpIndex, Temporary:=True)
> cp_NewMenu.Caption = "&My Menu"
>
> Phil
>

 
Reply With Quote
 
=?Utf-8?B?VG9tIE9naWx2eQ==?=
Guest
Posts: n/a
 
      11th Apr 2007
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, _
> Before:=i_HelpIndex, Temporary:=True)
> cp_NewMenu.Caption = "&My Menu"
>
> Phil
>
>

 
Reply With Quote
 
Phil
Guest
Posts: n/a
 
      11th Apr 2007
Tom and Ron:

Thank you. That worked.

Phil

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Word adds blank pages between flow chart pages Kathy Microsoft Word Document Management 1 21st May 2009 05:06 PM
Visible pages mich Microsoft Excel Misc 2 13th Jan 2009 09:39 PM
Custom CommandBar visible dependent on active sheet cagey63 Microsoft Excel Programming 6 31st Jan 2008 04:25 PM
Commandbar not visible in a graphic leglouton Microsoft Excel Programming 2 19th Jul 2005 04:59 PM
Add control to the Chart menu of "Chart Menu Bar" commandbar Andrew Microsoft Excel Programming 2 10th Nov 2003 08:22 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:03 PM.