Sunteți pe pagina 1din 6

MOUSE OFF

KEYBOARD OFF
DISABLE MULTIPLE CELL SELECTION
DISABLE SELECT CELL RANGE
<!-- This is example : Disable-Visible-Repurposing.xlsm -->

<customUI xmlns="http://schemas.microsoft.com/office/2009/07/customui">
<!-- *********************************************************************-->
<!-- **********Disable and Repurposing controls on the ribbon*************-->
<!-- *********************************************************************-->
<!-- *You can find the Control names in one of the downloads on this page*-->
<!-- ***************http://www.rondebruin.nl/ribbon.htm*******************-->
<!-- *********************************************************************-->
<commands>
<!-- Disable Save As and Open in the Backstage(File)menu-->
<command idMso="FileSaveAs" enabled = "false" />
<command idMso="FileOpen" enabled = "false" />
<!-- Example to disable the MergeCenterMenu on the Home tab in the Alignment gro
up-->
<command idMso="MergeCenterMenu" enabled = "false" />
<!-- Run your own macro when you click on a build in control-->
<!-- When you click on Paste on the Home tab it will run the macro "MyPasteMacro
"-->
<command idMso="Paste" onAction="MyPasteMacro"/>
</commands>

<!-- **************************************************************************-
->
<!-- **********Set visible to false for tabs or groups on the ribbon***********-
->
<!-- **************************************************************************-
->
<!-- **********You can find the Tab and Group names on this page***************-
->
<!-- **************http://www.rondebruin.nl/xmlribbongroups.htm****************-
->
<!-- **************************************************************************-
->
<!-- ****************Or in one of the downloads on this page*******************-
->
<!-- *****************http://www.rondebruin.nl/ribbon.htm**********************-
->
<!-- **************************************************************************-
->
<ribbon>
<tabs>
<!-- Set visible to false for the Font group on the Home tab-->
<tab idMso="TabHome">
<group idMso="GroupFont" visible="false"/>
</tab>
<!-- Set visible to false for the whole Insert tab on the ribbon-->
<tab idMso="TabInsert" visible="false"/>
</tabs>
</ribbon>
</customUI>
---------------------------------------------------
<!-- This is example : Dictator(1).xlsm -->
<customUI xmlns="http://schemas.microsoft.com/office/2009/07/customui">
<!-- Set startFromScratch to true to hide the Ribbon and QAT-->
<ribbon startFromScratch="true">
<!-- startFromScratch="true" hides all of the Ribbon tabs and it hide th
e QAT. -->
<!-- It not hides the Contextual tabs on the ribbon, for example the
-->
<!-- Format tab that you see when you select a picture on your worksheet
. -->
<!-- So if you want to hide them you must use the RibbonX below:
-->
<contextualTabs>
<tabSet idMso="TabSetSmartArtTools" visible="false" />
<tabSet idMso="TabSetChartTools" visible="false" />
<tabSet idMso="TabSetDrawingTools" visible="false" />
<tabSet idMso="TabSetPictureTools" visible="false" />
<tabSet idMso="TabSetPivotTableTools" visible="false" />
<tabSet idMso="TabSetHeaderAndFooterTools" visible="false" />
<tabSet idMso="TabSetTableToolsExcel" visible="false" />
<tabSet idMso="TabSetPivotChartTools" visible="false" />
<tabSet idMso="TabSetInkTools" visible="false" />
</contextualTabs>

<!-- You can add xml here to create your own custom tab on the ribbon-->

</ribbon>
<!--hide all buttons and tabs in Backstage (File)-->
<backstage>
<button idMso="FileSave" visible="false"/>
<button idMso="FileSaveAs" visible="false"/>
<button idMso="FileOpen" visible="false"/>
<button idMso="FileClose" visible="false"/>
<button idMso="ApplicationOptionsDialog" visible="false"/>
<button idMso="FileExit" visible="false"/>
<tab idMso="TabInfo" visible="false"/>
<tab idMso="TabRecent" visible="false"/>
<tab idMso="TabNew" visible="false"/>
<tab idMso="TabPrint" visible="false"/>
<tab idMso="TabShare" visible="false"/>
<tab idMso="TabHelp" visible="false"/>
</backstage>
</customUI>
------------------------------------------------------------
<!-- This is example : Dictator(2) With_Custom_Tab.xlsm -->
<customUI xmlns="http://schemas.microsoft.com/office/2009/07/customui">
<!-- Set startFromScratch to true to hide the Ribbon and QAT-->
<ribbon startFromScratch="true">
<!-- startFromScratch="true" hides all of the Ribbon tabs and it hide th
e QAT. -->
<!-- It not hides the Contextual tabs on the ribbon, for example the
-->
<!-- Format tab that you see when you select a picture on your worksheet
. -->
<!-- So if you want to hide them you must use the RibbonX below:
-->
<contextualTabs>
<tabSet idMso="TabSetSmartArtTools" visible="false" />
<tabSet idMso="TabSetChartTools" visible="false" />
<tabSet idMso="TabSetDrawingTools" visible="false" />
<tabSet idMso="TabSetPictureTools" visible="false" />
<tabSet idMso="TabSetPivotTableTools" visible="false" />
<tabSet idMso="TabSetHeaderAndFooterTools" visible="false" />
<tabSet idMso="TabSetTableToolsExcel" visible="false" />
<tabSet idMso="TabSetPivotChartTools" visible="false" />
<tabSet idMso="TabSetInkTools" visible="false" />
</contextualTabs>

<!-- Add Custom tab to the Ribbon with your own buttons-->
<!-- The example add three groups to the new tab named 'My Tab' -->
<!-- On the last tab there is a menu with five options-->
<tabs>
<tab id="MyCustomTab" label="My Tab" >
<group id="customGroup1" label="Group 1">
<button id="customButton1" label="Caption 1" size="normal" onAction="M
acro1" imageMso="DirectRepliesTo" />
<button id="customButton2" label="Caption 2" size="normal" onAction="M
acro2" imageMso="AccountMenu" />
<button id="customButton3" label="Caption 3" size="normal" onAction="M
acro3" imageMso="RegionLayoutMenu" />
</group>
<group id="customGroup2" label="Group 2">
<button id="customButton4" label="Caption 4" size="normal" onAction="M
acro4" imageMso="TextAlignGallery" />
<button id="customButton5" label="Caption 5" size="normal" onAction="M
acro5" imageMso="PrintPreviewClose" />
<button id="customButton6" label="Caption 6" size="normal" onAction="M
acro6" imageMso="PrintPreviewShrinkOnePage" />
<separator id="MySeparator1" />
<button id="customButton7" label="Caption 7" size="large" onAction="Ma
cro7" imageMso="ReviewPreviousComment" />
</group>
<group id="customGroup3" label="Group 3">
<menu id="MyDropdownMenu" label="My Menu" size="large" imageMso="TextA
lignGallery" >
<button id="customButton8" label="Caption 8" onAction="Macro8" imag
eMso="TextAlignGallery" />
<button id="customButton9" label="Caption 9" onAction="Macro9" imag
eMso="TextAlignGallery" />
<button id="customButton10" label="Caption 10" onAction="Macro10" i
mageMso="TextAlignGallery" />
<button id="customButton11" label="Caption 11" onAction="Macro11" i
mageMso="TextAlignGallery" />
<button id="customButton12" label="Caption 12" onAction="Macro12" i
mageMso="TextAlignGallery" />
</menu>
</group>
</tab>
</tabs>

</ribbon>
<!--hide all buttons and tabs in Backstage (File)-->
<backstage>
<button idMso="FileSave" visible="false"/>
<button idMso="FileSaveAs" visible="false"/>
<button idMso="FileOpen" visible="false"/>
<button idMso="FileClose" visible="false"/>
<button idMso="ApplicationOptionsDialog" visible="false"/>
<button idMso="FileExit" visible="false"/>
<tab idMso="TabInfo" visible="false"/>
<tab idMso="TabRecent" visible="false"/>
<tab idMso="TabNew" visible="false"/>
<tab idMso="TabPrint" visible="false"/>
<tab idMso="TabShare" visible="false"/>
<tab idMso="TabHelp" visible="false"/>
</backstage>
</customUI>
---------------------------------------------
<!-- This is example : Custom tab for your favorite macros Part 2 -->

<customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui">
<!-- Add Custom tab to the ribbon with your favorite buttons-->
<!-- The example add five groups to the new tab -->
<!-- On the third group there is a menu with five options-->
<!-- On the fourth group there is a splitbutton example-->
<!-- On the fifth group there are button groups (the last one with built-in bu
ttons)-->
<ribbon>
<tabs>
<tab id="MyCustomTab" label="My Tab" insertAfterMso="TabHome">
<group id="customGroup1" label="Group 1">
<button id="customButton1" label="Caption 1" size="normal" onAction="M
acro1" imageMso="DirectRepliesTo" />
<button id="customButton2" label="Caption 2" size="normal" onAction="M
acro2" imageMso="AccountMenu" />
<button id="customButton3" label="Caption 3" size="normal" onAction="M
acro3" imageMso="RegionLayoutMenu" />
</group>
<group id="customGroup2" label="Group 2">
<button id="customButton4" label="Caption 4" size="normal" onAction="M
acro4" imageMso="TextAlignGallery" />
<button id="customButton5" label="Caption 5" size="normal" onAction="M
acro5" imageMso="PrintPreviewClose" />
<button id="customButton6" label="Caption 6" size="normal" onAction="M
acro6" imageMso="PrintPreviewShrinkOnePage" />
<separator id="MySeparator1" />
<button id="customButton7" label="Caption 7" size="large" onAction="Ma
cro7" imageMso="ReviewPreviousComment" />
</group>
<group id="customGroup3" label="Group 3">
<menu id="MyDropdownMenu" label="My Menu" size="large" imageMso="TextA
lignGallery" >
<button id="customButton8" label="Caption 8" onAction="Macro8" imag
eMso="TextAlignGallery" />
<button id="customButton9" label="Caption 9" onAction="Macro9" imag
eMso="TextAlignGallery" />
<button id="customButton10" label="Caption 10" onAction="Macro10" i
mageMso="TextAlignGallery" />
<button id="customButton11" label="Caption 11" onAction="Macro11" i
mageMso="TextAlignGallery" />
<button id="customButton12" label="Caption 12" onAction="Macro12" i
mageMso="TextAlignGallery" />
</menu>
</group>
<group id="customGroup4" label="Group 4">
<splitButton id="mySplitButton" size="large">
<button id="customButton13" imageMso="HappyFace" label="Caption 13"
supertip="This is a splitButton." onAction="Macro13"/>
<menu id="splitMenu" itemSize="large">
<!-- use itemSize = large or use normal -->
<button id="customButton14" imageMso="FormatPainter" label="Captio
n 14" onAction="Macro14" description="Info macro 14"/>
<button id="customButton15" imageMso="FormatPainter" label="Captio
n 15" onAction="Macro15" description="Info macro 15"/>
<button id="customButton16" imageMso="FormatPainter" label="Captio
n 16" onAction="Macro16" description="Info macro 16"/>
</menu>
</splitButton>
</group>

<group id="customGroup5" label="Group 5">


<buttonGroup id="mybuttonGroup1">
<button id="customButton17" label="Caption 17" showLabel="false" onA
ction="Macro17" imageMso="ReviewPreviousComment" />
<button id="customButton18" label="Caption 18" showLabel="false" on
Action="Macro18" imageMso="ReviewPreviousComment" />
<button id="customButton19" label="Caption 19" showLabel="false" onA
ction="Macro19" imageMso="ReviewPreviousComment" />
<button id="customButton20" label="Caption 20" showLabel="false" on
Action="Macro20" imageMso="ReviewPreviousComment" />
</buttonGroup>
<buttonGroup id="mybuttonGroup2">
<button id="customButton21" label="Caption 21" showLabel="false" onA
ction="Macro21" imageMso="HappyFace" />
<button id="customButton22" label="Caption 22" showLabel="false" on
Action="Macro22" imageMso="HappyFace" />
<button id="customButton23" label="Caption 23" showLabel="false" on
Action="Macro23" imageMso="HappyFace" />
</buttonGroup>
<buttonGroup id="mybuttonGroup3">
<toggleButton idMso="Bold"/>
<toggleButton idMso="Italic"/>
<toggleButton idMso="Save"/>
<button idMso="VisualBasic" showLabel="false" />
</buttonGroup>
</group>
</tab>
</tabs>
</ribbon>
</customUI>

S-ar putea să vă placă și