Solved

Excel Command Bar dissappears when I select an object like a Chart

Posted on 2011-03-04
7
508 Views
Last Modified: 2012-05-11
I have Addin menu items that work just fine, but when I'm on an Active Chart (in sheet or as separate tab) the Addin menuitems dissappear!

What gives?

Dave
0
Comment
Question by:dlmille
  • 3
  • 2
  • 2
7 Comments
 
LVL 30

Expert Comment

by:SiddharthRout
ID: 35040010
0
 
LVL 30

Accepted Solution

by:
SiddharthRout earned 250 total points
ID: 35040028
That is I believe for earlier office versions. Would recommend you to create Add-Ins using the Custom UI Editor For Microsoft Office.

The "Custom UI Editor For Microsoft Office" can be downloaded from

http://openxmldeveloper.org/articles/customuieditor.aspx

Sid
0
 
LVL 1

Expert Comment

by:Jon_Peltier
ID: 35052235
The behavior described is from Excel 2003 or earier. The Custom UI designer only has an effect on Excel 2007 or later.

The menu is added to the Worksheet menu bar. When a chart is selected, the Worksheet menu bar is hidden and the Chart menu bar appears. Since the menu was not also added to the Chart menu bar, it disappears when the menu bars switch.

Unfortunately the add-in designer didn't think to add the menu to both menu bars. You may be able to copy it to the Chart menu bar, and it may still be there the next time you start Excel.

On the Tools menu, choose Customize. On the Toolbars tab, make sure both the Worksheet Menu Bar and Chart Menu Bar are checked. This makes both menu bars visible. Hold Ctrl while you click and drag the menu from the Worksheet menu bar to the Chart menu bar (holding Ctrl makes a copy of the menu).

If the add-in designer forgot to add the menu to the Chart menu bar, he probably also didn't plan to remove it, so it is likely to persist between Excel sessions.
0
Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

 
LVL 41

Author Comment

by:dlmille
ID: 35052942
So.  I am the addin designer, lol and my menus work great, even between Excel sessions, than you for that advice anyway.  When I select the chart, then flip to Addins - some professional addins are there, but not mine.  I should not have to add it to the Chart menu bar to use the menu function.  

Snag it is in the Custom Toolbar menu, where mine is under the group called Menu Commands.  Is there a difference?

Dave
0
 
LVL 1

Assisted Solution

by:Jon_Peltier
Jon_Peltier earned 250 total points
ID: 35055299
Snag It is in the Custom Toolbar menu, but on both the Worksheet and the Chart menu bar, correct? The Menu Commands menu apparently is only on the Worksheet menu bar, or it appears on both but your button is only on the Menu Commands menu on the Worksheets menu bar.

Whatever code you use to add your button has to explicitly add it to both menu bars. If it is done by menu bar index instead of name, the Worksheet menu bar is 1 and the Chart menu bar is 2.
0
 
LVL 41

Author Comment

by:dlmille
ID: 35058785
Snag It is only on the custom toolbar menu.  I found that if I made my menubar FLOATING, it also shows up on the custom toolbar menu.

This is the solution, I think.  Thanks for help on both avenues - I'll be looking into custom UI and Jon also gave some ideas so I'll be splitting.

Dave
0
 
LVL 41

Author Closing Comment

by:dlmille
ID: 35058803
My solution - to use floating menubar, actually allowed my menu items to get on the custom toolbar menu - and hence be available when chart was selected.
0

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
Excel can be a tricky bit of software to get your head around. Whilst you’ll be able to eventually get to grips with the basic understanding of how to get by, there are a few Excel tips that not everybody will even know about let alone know how to d…
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question