View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Alice[_7_] Alice[_7_] is offline
external usenet poster
 
Posts: 4
Default Excel 2007 Ribbon Check custom buttons

Hi all,

via xml i add a tab to a ribbon, say something like:

<tab id="myId1" lable="MyLable"
<group id="gr1"
<button id="myButton1" onAction="MySub1" lable="Test1"
<button id="myButton1" onAction="MySub1" lable="Test2"
</group
<group id="gr2"
<button id="myButton1" onAction="MySub2" lable="Test3"
<button id="myButton1" onAction="MySub2" lable="Test4"
</group
</tab

In my workbook i have now two subs

sub MySub1(control as IbRibbonControl)
'some action
end sub

sub MySub2(control as IbRibbonControl)
'some action
end sub

Now it could be possible, that sombody removes the xmlpart for group gr2.

How can i check in my Sub MySub1 if the group gr2 with the buttons with the
given id and onAction arguments exists?

Is there a way? I found only GetMso ... which won't help with own
definitions?

Any idea?

tx in advance
Alice