VSTO 2003 Excel Command Bars

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi!
in my application, I want to execute my managed code with a click on a
toolbar botton. I created my own custom command bar (like it is shown on
MSDN, the articel is from Brian A. Randall)
If I start the application from VS it works fine: I can see my own menu bar!
If I start directly the Excel- sheet, I can see for a short time my menu-
bar, then it is away.
What can i do to fix this problem?

thanks in advance
Bizi
 
Did you create it as temporary?

from the article, it might be:

Me.MenuBarItem = Me.MainMenuBar.Controls.Add( _
Office.MsoControlType.msoControlPopup, Temporary:=True)
 
Thanke you for your answer.
I have checked this, it was true, then I tried false, but then it still does
not work
I have no idee
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top