How to Create Customized Ribbon in Microsoft Access 2007
http://www.setha.info/ict-msaccess/22-ict-msaccess-0001.html
This article shows you one scenario about how to create a customized Office Fluent Ribbon in Microsoft Access 2007. This article applies to only Microsoft Office Access Database not include the Microsoft Office Access Project (*.ADP). To customized our own Ribbon we need to know some of XML markup text.
Scenario for creating customized Office Fluent Ribbon in Microsoft Access 2007
Field Name | Data Type | Description |
---|---|---|
RibbonName | Text | Unique name that identifies the UI extensibility customizations in the RibbonXML field. |
RibbonXML | Memo | RibbonXML that describes a set of customizations to be applied to the Office Fluent UI. |
Field Name | Content |
---|---|
RibbonName | Home |
RibbonXML |
<customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui"> <ribbon startFromScratch="true"> <tabs> <tab id="tabMain" label="Home"> </tab> </tabs> </ribbon> </customUI> |
Field Name | Content |
---|---|
RibbonName | Home |
RibbonXML |
<customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui"> <ribbon startFromScratch="true"> <tabs> <tab id="tabMain" label="Home"> <group id="grpList" label="List"> </group> </tab> </tabs> </ribbon> </customUI> |
Field Name | Content |
---|---|
RibbonName | Home |
RibbonXML |
<customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui"> <ribbon startFromScratch="true"> <tabs> <tab id="tabMain" label="Home"> <group id="grpList" label="List"> <button id="cmdBook" label="Book" size="large" supertip="Click here to show list of book"/> </group> </tab> </tabs> </ribbon> </customUI> |
<button id="cmdBook" label="Book" size="large" imageMso="ControlLayoutStacked" supertip="Click here to show list of book"/>
<button id="cmdBook" label="Book" size="large" onAction="macRibbons.btnBookClick" imageMso="ControlLayoutStacked" supertip="Click here to show list of book"/>
Public Function btnBookClick() MsgBox "Testing click on Book Button" End Function
http://www.setha.info/ict-msaccess/22-ict-msaccess-0001.html