Solved

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

Posted on 2011-03-04
7
500 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
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Article by: Leon
Software Metering within our group of companies has always been an afterthought until auditing of software and licensing became a pain point. Orchestrator and SCCM metering gave us the answer and it was an exciting process.
No matter the version of Windows you are using, you may have some problems with Windows Search running too slow or possibly not running at all. Before jumping into how you can solve this issue, just know there are many other viable alternative deskt…
Graphs within dashboards are meant to be dynamic, representing data from a period of time that will change each time the dashboard is updated with new data. Rather than update each graph to point to a different set within a static set of data, t…
This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.

758 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now