Avatar of hallpett
hallpett
 asked on

Custom Ribbon Question

In Access 2007 I used a software called RibbonCustomizerV1.1 to build my own Ribbon. My Ribbon is still working but the customizer software don't work under Access 2010. Now I want to add a Delete Record button to the Ribbon but can't find the solution to do this. Hope someone can tell me how this can be done or directly give me the xml code I need to insert a Delete Record button before the Zoom Group in my Ribbon. XML Below. Appreciate any tips or hint.

<customUI xmlns="http://schemas.microsoft.com/office/2009/07/customui">
<ribbon startFromScratch="true">
<tabs>
<tab id="CustomTab1761243499" label="Rett23">
<group id="CustomGroup1805135207" label="Rett23">
<button id="RunMacroFirmaValg" label="Firmavalg" imageMso="DatabaseCopyDatabaseFile" size="large" onAction="FirmaValg" supertip="Endre tilkobling til firma."/>
<separator id="CustomSeparator1723290410" />
<button id="RunMacroHovedmeny" label="Hovedmeny" imageMso="ConvertToSmartArt" size="large" onAction="Hovedmeny" supertip="Åpne hovedmeny."/>
</group>
<group id="CustomGroup954520725" label="Utskrift">
<button idMso="FilePrintQuick" size="large" />
<separator id="CustomSeparator1884859796" />
<button idMso="PrintDialogAccess" />
<button idMso="PageSetupDialog" imageMso="PageSetupPageDialog"/>
<button idMso="FilePrintPreview" />
<separator id="CustomSeparator642255219" />
<button idMso="PrintPreviewClose" size="large" />
</group>
<group id="CustomGroup825815353" label="Zoom">
<splitButton idMso="PrintPreviewZoomMenu" size="large" />
<toggleButton idMso="ZoomOnePage" />
<toggleButton idMso="PrintPreviewZoomTwoPages" />
<menu idMso="PrintPreviewMultiplePagesMenu" />
</group>
<group id="CustomGroup121774283" label="Totaler">
<toggleButton idMso="RecordsTotals" size="large" />
</group>
<group idMso="GroupSortAndFilter" />
<group id="CustomGroup1460827025" label="Eksporter">
<button idMso="ExportSavedExports" size="large" />
<separator id="CustomSeparator1115073280" />
<button idMso="ExportExcel" size="large" />
<separator id="CustomSeparator1090675300" />
<button idMso="ExportTextFile" />
<button idMso="ExportWord" />
</group>
</tab>
</tabs>
</ribbon>
<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>
Microsoft Access

Avatar of undefined
Last Comment
mbizup

8/22/2022 - Mon
mbizup

Make a backup and try adding the delete button (MSO ID RecordsDeleteRecord) immediately before the zoom group is defined, like this:

<button idMso="PrintPreviewClose" size="large" />
</group>
<button idMso="RecordsDeleteRecord" size="large" />
<group id="CustomGroup825815353" label="Zoom">

Open in new window

hallpett

ASKER
Thanks for your response.
Does not work like this but if I put line 3 after line 4 it workes. I guess I need to put the button inside it's own group. I can see how groups are built but where does the number behind text "CustomGroups" come from, and what number can I use to replace XXXXXXXXX in example below:

<group id="CustomGroupXXXXXXXXX" label="Delete
<button idMso="RecordsDeleteRecord" size="large" />
</group>
ASKER CERTIFIED SOLUTION
mbizup

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy