Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 30
Default Com Add-In Modifying RIbbon in 2007?

We have a Com Add-In (C#) that works nicely in Excel 2003 and 2007, but in
2007 the commandbar buttons all get grouped into the Add-Ins Ribbon. We want
to be able to create our own Ribbon with a more native 2007 look/feel.
The sites that I have seen discuss customizing the ribbon for 2007 show how
to do it manually, but I haven't seen anything that shows how our Com Add-In
can do it programatically. If anyone can help with a few lines of code to
go in the OnConnection method or point me in the right direction, it would be
appreciated.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,600
Default Com Add-In Modifying RIbbon in 2007?

I have no idea about C# but as no one has answered your question - in VB6 it
would be something like this

' connect module
Implements IRibbonExtensibility

Public Function IRibbonExtensibility_GetCustomUI(ByVal RibbonID As String)
As String
' fires after the OnConnection event
IRibbonExtensibility_GetCustomUI = RibbonXML-string

' where the xml is read from say file or resource
End Function

and the calback

Public Function MyButton(ByVal control As Office.IRibbonControl)
Select case control.Id
case "macro1": Call macro1
End Select
End Sub

in the ribbon xml
<button id="macro1" etc etc onAction="MyButton" /

Regards,
Peter T


"Matthew Wieder" wrote in message
...
We have a Com Add-In (C#) that works nicely in Excel 2003 and 2007, but in
2007 the commandbar buttons all get grouped into the Add-Ins Ribbon. We
want
to be able to create our own Ribbon with a more native 2007 look/feel.
The sites that I have seen discuss customizing the ribbon for 2007 show
how
to do it manually, but I haven't seen anything that shows how our Com
Add-In
can do it programatically. If anyone can help with a few lines of code
to
go in the OnConnection method or point me in the right direction, it would
be
appreciated.



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Office 2007 Ribbon Kay Excel Discussion (Misc queries) 3 September 9th 09 01:51 PM
Modifying XLA to show toolbar in XL 2003 and ribbon tab in XL 2007 jean grey Excel Programming 4 January 28th 09 05:14 AM
Excel 2007 Ribbon Clay Excel Worksheet Functions 2 September 3rd 08 09:51 AM
xls 2007 ribbon oldLearner57 Excel Discussion (Misc queries) 2 June 13th 08 01:22 AM
How can I add the OneNote 2007 icon to the ribbon in Excel 2007? Todd Excel Discussion (Misc queries) 6 February 14th 08 11:22 PM


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

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"