2016-06-30 3 views
0

office-2007의 사용자 지정 메뉴 항목을 Office 단추에 추가하려면 어떻게합니까? 당신은 내가 '라벨'과 '버튼을'추가 볼 수 있듯이
enter image description here
: 사무실 2007 년office-2007의 사무실 단추에 사용자 지정 메뉴 항목을 추가하려면 어떻게합니까?

는, 나는, 사무실 버튼에 일부 사용자 지정 메뉴 항목을 추가하려면 아래 이미지를 볼 수 관리했습니다. 이 버튼에는 내가보고 싶은 것이 부족합니다.

내가하고 싶은 것은 아래 그림에서 볼 수있는 'Word 문서'버튼과 같은 버튼을 만드는 것입니다. 제목과 그 밑에 묘사 된 형태의 버튼.
enter image description here

여러 가지 시도를 해본 결과 거의 모든 옵션이 'Ribbon.xml'에있었습니다.

<?xml version="1.0" encoding="UTF-8"?> 
<customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui" onLoad="Ribbon_Load"> 
<ribbon> 
<officeMenu> 
    <menu id="test" label="My Menu"> 
    <button id="id001" description="desc" enabled="true" label="label" screentip="screentip" supertip="supertip" tag="tag"/> 
    <button id="id002" imageMso="AdpPrimaryKey" label="A button" description="desc" onAction="action" visible="true" /> 
    </menu> 
</officeMenu> 
</ribbon> 
</customUI> 

답변

1

어쩌면 당신은 다음 사이트에 ribboneditor을 통해 일부 informatie을 찾을 수 있습니다

<!--RibbonX Visual Designer 1.9 for Microsoft Word 12.0. XML Code produced on 2010/02/02--> 
<customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui" > 
    <ribbon > 
     <officeMenu > 
      <splitButton id="Splitbutton1" > 
       <button 
        id="Button1" 
        imageMso="AdpPrimaryKey" 
        label="Company Lockers"/> 
       <menu 
        id="Menu1" 
        itemSize="large" 
        label="Menu1"> 
        <menuSeparator 
         id="Menuseparator1" 
         title="Lock away your company files"/> 
        <button 
         description="Place your workbook in the Corporate Locker. Information may be accessed by others" 
         id="Button2" 
         imageMso="ReviewProtectWorkbook" 
         label="Corporate Locker"/> 
        <button 
         description="Place your workbook in a Group Locker. Only members of your Group can access it." 
         id="Button3" 
         imageMso="SheetProtect" 
         label="Group Locker"/> 
        <button 
         description="Place your workbook in a Locker that can only be accessed by users you have invited." 
         id="Button4" 
         imageMso="ProtectDocument" 
         label="Invite Locker"/> 
        <button 
         description="Place workbook in a Private Locker that can only be accessed by you." 
         id="Button5" 
         imageMso="Lock" 
         label="Private Locker"/> 
       </menu > 
      </splitButton > 
     </officeMenu > 
    </ribbon > 
</customUI > 
+0

구성 요소의 순서에 따라 문제가 발생하는 것으로 보입니다. – creulcat

0

당신은 재 배열 및 마우스를 사용하여 도구 모음 단추, 메뉴 및 메뉴 명령을 변경하거나 당신이 키보드를 사용하여 액세스 할 수있는 명령 다시 정렬 대화 상자를 사용할 수 있습니다. 키보드를 사용하여 수행 할 수있는 작업은 (키보드 액세스 가능)로 식별됩니다. 다음 XML을 얻을 OfficeMenu 예와 http://www.andypope.info/vba/ribboneditor.htm

: Check this out to find more

+0

이 나를 새로운 버튼을 추가 할 수 없습니다. 하지만 내가 아는 한 내 코드에서 지정할 수있는 버튼이 아닙니까? – creulcat

+0

사용자 지정 메뉴 항목에 매크로를 사용할 수도 있습니다. –

관련 문제