- 727 名前:デフォルトの名無しさん mailto:sage [2023/01/17(火) 22:29:25.09 ID:lscX0yJQ0.net]
- vbaとribbon customuiって直接関係ありませんが、マクロをribbon customuiから利用を考えています。
ネットやyoutube等調べて試したのですが、タブやボタンが表示されずに困っています。 また2007と2010でxmlnsの名前空間指定方法が異なることも理解しているつもりです。 2010以降を想定しています。 環境:Excel for Microsoft 365 MSO (バージョン 2212 ビルド 16.0.15928.20196) 64 ビット ribbon_test.xlsm(zip) _rels, customUI, docProps, xl, [Content_Types].xml マクロ Module1.main _relsの.rels <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <Relationships xmlns="schemas.openxmlformats.org/package/2006/relationships"> <Relationship Id="rId3" Type="(略)" Target="docProps/core.xml"/> <Relationship Id="rId1" Type="(略)" Target="xl/workbook.xml"/> <Relationship Id="rId4" Type="(略)" Target="docProps/app.xml"/> <Relationship Id="rId5" Type="schemas.microsoft.com/office/2007/relationships/ui/extensibility" Target="customUI/customUI14.xml"/> </Relationships> customUIのcustomUI14.xml <?xml version="1.0" encoding="utf-8"?> <customUI xmlns="schemas.microsoft.com/office/2009/07/customui"> <ribbon><tabs> <tab id="CustomTab" label="Custom Tab"> <group id="customGroup" label="Custom Group"><button id="member" visible="true" label="Custom Button" size="large" imageMso="HappyFace" onAction="Module1.main" /></group> </tab> </tabs></ribbon> </customUI> ご教授お願いいたしますm(_ _;)m
|

|