PC Review


Reply
Thread Tools Rate Thread

Customize Ribbon with excel interop

 
 
light
Guest
Posts: n/a
 
      17th Nov 2009
Hi everyone,

I am developing a c# application, which is created from an excel workbook.
In the VBA code of the workbook, my assembly (a class library project) is
created, a class instance is created and a method is called. To this method
an Application object is passed. So I can register on excel events and
interact with excel. I can change or add menus, do things when workbooks are
opened, etc.

Now my application should also work with excel 2007. But in excel 2007 there
is no "standard" menu, but there is the ribbon. So I need to change the
ribbon from my c# project. I have a reference to the excel application.

Note: I tried to do that with an 2007 addin, and returned the XML file which
worked perfect. But I can't use the add in approach, because my application
is not the creator of the excel application. So I need to change the ribbon
by interacting with the application object (or objects reling in the
application object).

So can anyone tell me, if this is possible, and if yes, how I can realize
that?

Thanks for help,
Regards
 
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
Customize Ribbon with excel interop light Microsoft Excel Programming 0 17th Nov 2009 09:31 AM
customize Excel ribbon Joe Microsoft Excel Programming 1 11th Nov 2009 01:47 PM
Customize Ribbon After Installing MOREFUNC FARAZ QURESHI Microsoft Powerpoint 1 19th May 2009 02:01 PM
Customize Ribbon entry Fred Smith Microsoft Powerpoint 4 30th Sep 2008 01:09 AM
Customize Ribbon Laura Microsoft Outlook Discussion 1 17th Jan 2008 06:18 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:07 AM.