2014-11-13 3 views
0

다른 Excel 추가 기능 (* .xlam)이 있으며 모두 "탭 ID"와 레이블이 같습니다. 그러나 동일한 Excel 파일로로드 할 때 각 "추가 기능"은 동일한 이름의 별도 리본을 만듭니다. 별도로로드 할 때 동일한 리본 아래 그룹화 할 수있는 방법이 있습니까? 리본의 XML 코드의 서로 다른 리본을 그룹화하는 방법은 무엇입니까?

은 다음과 같습니다 :

<customUI xmlns="http://schemas.microsoft.com/office/2009/07/customui"> 
<ribbon> 
    <tabs> 
     <tab id="CompanyFunctions" label="Company Functions "> 
    <group id="GrpLogOn" label="Int_Functions"> 
     <button id="CalculateX" label=" Calculate X" imageMso="TableDrawTable" onAction="startCalculateX " size="large" /> 
    </group> 
     </tab> 
    </tabs> 
</ribbon> 

<customUI xmlns="http://schemas.microsoft.com/office/2009/07/customui"> 
<ribbon> 
    <tabs> 
     <tab id="CompanyFunctions" label="Company Functions "> 
    <group id="GrpLogOn" label="Int_Functions"> 
     <button id="CalculateY" label=" Calculate Y" imageMso="TableDrawTable" onAction="startCalculateY " size="large" /> 
    </group> 
     </tab> 
    </tabs> 
</ribbon> 

답변

1

당신은 그들이 같은 탭/그룹을 공유하기 위해 대신 아이디의 IDQ를 사용한다 :

<customUI xmlns="http://schemas.microsoft.com/office/2009/07/customui" 
    xmlns:myaddins="myuniquekey"> 
<ribbon> 
    <tabs> 
     <tab idQ="myaddins:CompanyFunctions" label="Company Functions "> 
    <group idQ="myaddins:GrpLogOn" label="Int_Functions"> 
     <button id="CalculateX" label=" Calculate X" imageMso="TableDrawTable" onAction="startCalculateX " size="large" /> 
    </group> 
     </tab> 
    </tabs> 
</ribbon> 

<customUI xmlns="http://schemas.microsoft.com/office/2009/07/customui" 
    xmlns:myaddins="myuniquekey"> 
<ribbon> 
    <tabs> 
     <tab idQ="myaddins:CompanyFunctions" label="Company Functions "> 
    <group idQ="myaddins:GrpLogOn" label="Int_Functions"> 
     <button id="CalculateY" label=" Calculate Y" imageMso="TableDrawTable" onAction="startCalculateY " size="large" /> 
    </group> 
     </tab> 
    </tabs> 
</ribbon> 

+0

감사 니콜라이! 그것은 내가 찾고 있었던 절대적으로! – Lati

관련 문제