Kann Ribbon nicht einblenden.

02/04/2011 - 14:16 von Michael K. | Report spam
Guten Tag,

ich habe das Problem in Access2007, dass ich mein erstelltes Ribbon (mit Ribboncreator) nicht per VBA einblenden oder ausblenden kann.
Wenn ich es in den Access-Optionen ausw?hle, dann wird es beim Starten der Datenbank korrekt angezeigt.
Bei "DoCmd.ShowToolbar "TM", acToolbarNo" wird jedoch ein Fehler angezeigt, dass diese Symbolleiste nicht gefunden wird.

W?rde mich freuen wenn mir jemand sagen k?nnte was ich falsch mache.

Mein Ribbon ist in der Tabelle USysRibbons (RibbonName ist auch "TM") und sieht folgenderma?en aus:
<!-- Created with IDBE Ribbon Creator (Version: 1.1031a) -->
<!-- http://www.RibbonCreator.com -->
<!-- http://www.RibbonCreator.de -->

<customUI xmlns="http://schemas.microsoft.com/office...omui" onLoad="OnRibbonLoad" loadImage="LoadImages">
<commands>
<command idMso="Help" enabled="false"/>
<command idMso="WindowClose" enabled="false"/>
<command idMso="WindowRestore" enabled="false"/>
<command idMso="WindowMinimize" enabled="false"/>
<command idMso="ApplicationOptionsDialog" enabled="false"/>
<command idMso="FileExit" enabled="false"/>
</commands>
<ribbon startFromScratch="true">
<officeMenu>
<button idMso="FileOpenDatabase" visible="false"/>
<button idMso="FileNewDatabase" visible="false"/>
<splitButton idMso="FileSaveAsMenuAccess" visible="false"/>
<button idMso="FileCloseDatabase" visible="false"/>
<button idMso="FileSave" visible="false"/>
<splitButton idMso="FilePrintMenu" visible="false"/>
<menu idMso="FileManageMenu" visible="false"/>
<button idMso="FileSendAsAttachment" visible="false"/>
<menu idMso="MenuPublish" visible="false"/>
</officeMenu>
<tabs><tab idMso="TabHomeAccess" visible="false" />
<tab id="tab0" label="TM" getVisible ="GetVisible" tag = "RibbonName:=TM;CustomTagValue1:=;CustomTagValue2:=;CustomTagValue3:=" >
<group id="grp0" label=" " getVisible ="GetVisible" tag = "RibbonName:=tm" >
<button id="btn_kundenverwaltung" size="large" label="Kundenverwaltung" imageMso="DistributionListSelectMembers" tag="RibbonName:=tm;inMenu:=;CustomTagValue1:=;CustomTagValue2:=;CustomTagValue3:=;CustomPicture:=;CustomPicturePath:=" onAction="OnActionButton" getVisible="GetVisible" getEnabled="GetEnabled" />
<button id="btn_Reiseverwaltung" size="large" label="Auftragsbuch / Reiseverwaltung" imageMso="BookmarkInsert" tag="RibbonName:=tm;inMenu:=;CustomTagValue1:=;CustomTagValue2:=;CustomTagValue3:=;CustomPicture:=;CustomPicturePath:=" onAction="OnActionButton" getVisible="GetVisible" getEnabled="GetEnabled" />
<button id="btn_Fuhrpark" size="large" label="Fuhrpark" imageMso="SizeToGridAccess" tag="RibbonName:=tm;inMenu:=;CustomTagValue1:=;CustomTagValue2:=;CustomTagValue3:=;CustomPicture:=;CustomPicturePath:=" onAction="OnActionButton" getVisible="GetVisible" getEnabled="GetEnabled" />
<button id="btn_Margenabrechnung" size="large" label="Margenabrechnung" imageMso="CalculateNow" tag="RibbonName:=tm;inMenu:=;CustomTagValue1:=;CustomTagValue2:=;CustomTagValue3:=;CustomPicture:=;CustomPicturePath:=" onAction="OnActionButton" getVisible="GetVisible" getEnabled="GetEnabled" />
<button id="btn_Hilfe" size="large" label="Hilfe" imageMso="FunctionsLogicalInsertGallery" tag="RibbonName:=tm;inMenu:=;CustomTagValue1:=;CustomTagValue2:=;CustomTagValue3:=;CustomPicture:=;CustomPicturePath:=" onAction="OnActionButton" getVisible="GetVisible" getEnabled="GetEnabled" />
</group>
</tab>
</tabs>
</ribbon>
</customUI>
 

Lesen sie die antworten

#1 Michael K.
02/04/2011 - 14:22 | Warnen spam
<!-- Created with IDBE Ribbon Creator (Version: 1.1031a) -->
<!-- http://www.RibbonCreator.com -->
<!-- http://www.RibbonCreator.de -->

<customUI xmlns="http://schemas.microsoft.com/office...omui" onLoad="OnRibbonLoad" loadImage="LoadImages">
<commands>
<command idMso="Help" enabled="false"/>
<command idMso="WindowClose" enabled="false"/>
<command idMso="WindowRestore" enabled="false"/>
<command idMso="WindowMinimize" enabled="false"/>
<command idMso="ApplicationOptionsDialog" enabled="false"/>
<command idMso="FileExit" enabled="false"/>
</commands>
<ribbon startFromScratch="true">
<officeMenu>
<button idMso="FileOpenDatabase" visible="false"/>
<button idMso="FileNewDatabase" visible="false"/>
<splitButton idMso="FileSaveAsMenuAccess" visible="false"/>
<button idMso="FileCloseDatabase" visible="false"/>
<button idMso="FileSave" visible="false"/>
<splitButton idMso="FilePrintMenu" visible="false"/>
<menu idMso="FileManageMenu" visible="false"/>
<button idMso="FileSendAsAttachment" visible="false"/>
<menu idMso="MenuPublish" visible="false"/>
</officeMenu>
<tabs><tab idMso="TabHomeAccess" visible="false" />
<tab id="tab0" label="TM" getVisible ="GetVisible" tag = "RibbonName:=TM;CustomTagValue1:=;CustomTagValue2:=;CustomTagValue3:=" >
<group id="grp0" label=" " getVisible ="GetVisible" tag = "RibbonName:=tm" >
<button id="btn_kundenverwaltung" size="large" label="Kundenverwaltung" imageMso="DistributionListSelectMembers" tag="RibbonName:=tm;inMenu:=;CustomTagValue1:=;CustomTagValue2:=;CustomTagValue3:=;CustomPicture:=;CustomPicturePath:=" onAction="OnActionButton" getVisible="GetVisible" getEnabled="GetEnabled" />
<button id="btn_Reiseverwaltung" size="large" label="Auftragsbuch / Reiseverwaltung" imageMso="BookmarkInsert" tag="RibbonName:=tm;inMenu:=;CustomTagValue1:=;CustomTagValue2:=;CustomTagValue3:=;CustomPicture:=;CustomPicturePath:=" onAction="OnActionButton" getVisible="GetVisible" getEnabled="GetEnabled" />
<button id="btn_Fuhrpark" size="large" label="Fuhrpark" imageMso="SizeToGridAccess" tag="RibbonName:=tm;inMenu:=;CustomTagValue1:=;CustomTagValue2:=;CustomTagValue3:=;CustomPicture:=;CustomPicturePath:=" onAction="OnActionButton" getVisible="GetVisible" getEnabled="GetEnabled" />
<button id="btn_Margenabrechnung" size="large" label="Margenabrechnung" imageMso="CalculateNow" tag="RibbonName:=tm;inMenu:=;CustomTagValue1:=;CustomTagValue2:=;CustomTagValue3:=;CustomPicture:=;CustomPicturePath:=" onAction="OnActionButton" getVisible="GetVisible" getEnabled="GetEnabled" />
<button id="btn_Hilfe" size="large" label="Hilfe" imageMso="FunctionsLogicalInsertGallery" tag="RibbonName:=tm;inMenu:=;CustomTagValue1:=;CustomTagValue2:=;CustomTagValue3:=;CustomPicture:=;CustomPicturePath:=" onAction="OnActionButton" getVisible="GetVisible" getEnabled="GetEnabled" />
</group>
</tab>
</tabs>
</ribbon>
</customUI>

Ähnliche fragen