Skip to main content

Custom UI Parts

Table of contents
  1. Ribbon Extensibility Part

Quick Access Toolbar Customizations Part

Keep in mind that when customizing the QAT, you must start it from scratch. This means that you must set the startFromScratch attribute to true, otherwise, you cannot proceed:

<ribbon startFromScratch="true">

Example:

<customUI xmlns="http://schemas.microsoft.com/office/2009/07/customui">
	<ribbon startFromScratch="true">
		<qat>
			<documentControls>
				<control idMso="Bold"
				         screentip="Make it Bold"
				         supertip="Click here to make the selected text bold."/>
				<button id="mybtnOpen"
				        imageMso="FileOpen"
				        screentip="Open"
				        supertip="Click here to open your files"
				        onAction="mybtnOpen_click"/>
			</documentControls>
		</qat>
	</ribbon>
</customUI>

Ribbon Extensibility Part

For example, the following Ribbon Extensibility content markup specifies that the ribbon tab with identifier "TabHome" is to be hidden for the containing package:

<customUI xmlns="http://schemas.microsoft.com/office/2009/07/customui">
	<ribbon>
		<tabs>
			<tab idMso="TabHome"
			     visible="false"/>
		</tabs>
	</ribbon>
</customUI>

Leave a comment

Your email address will not be published. Required fields are marked *

Format your code: <pre><code class="language-vba">place your code here</code></pre>