Hi Ken,
I tried it with the two following Ribbon descriptions. I receive the error
message:
Failure in analysing from "Quick Access Toolbar" as NCName-datatype.
Failure in analysing from attribut "idMso" with the value "Quick Access
Toolbar"
(It is translated from german)
1.) Ribbon desription:
<customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui"
loadImage="LoadImage"><ribbon><tabs><tab idMso="Quick Access Toolbar" ><group
id="c4bBrand" label="XPhone"><button id="IDS_WaehlenCombo" label="Wählen"
onAction="cmdCommonRibbonBttn" getImage="GetImage" /><button
id="IDS_Auflegen" label="Auflegen" onAction="cmdCommonRibbonBttn"
getImage="GetImage" /><button id="IDS_Aktionen" label="Aktionen"
onAction="cmdCommonRibbonBttn"
getImage="GetImage"/></group></tab></tabs></ribbon></customUI>
2.) Ribbon description:
<customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui"
loadImage="LoadImage"><ribbon><tabs><tab idMso="Quick Access Toolbar"
><button id="IDS_WaehlenCombo" label="Wählen" onAction="cmdCommonRibbonBttn"
getImage="GetImage" /><button id="IDS_Auflegen" label="Auflegen"
onAction="cmdCommonRibbonBttn" getImage="GetImage" /><button
id="IDS_Aktionen" label="Aktionen" onAction="cmdCommonRibbonBttn"
getImage="GetImage"/></tab></tabs></ribbon></customUI>
"Ken Slovak - [MVP - Outlook]" wrote:
> For one thing you have to use the correct name and tie it to an idMso, plus
> you need the <tabs> and <tab> tags there just as if you were working with
> any other ribbon:
>
> <ribbon>
> <tabs>
> <tab idMso="Quick Access Toolbar">
>
> You also should be aware that any QAT modifications you make will only apply
> to the QAT for that ribbon. If you customize the QAT for Outlook.Mail.Read
> it won't apply to Outlook.Mail.Compose or any other ribbon. You'll need to
> apply your QAT customizations to every ribbon where you want the
> customizations to appear.
>
> --
> Ken Slovak
> [MVP - Outlook]
> http://www.slovaktech.com
> Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
> Reminder Manager, Extended Reminders, Attachment Options
> http://www.slovaktech.com/products.htm
>
>
> "Christian Havel" <ChristianHavel DeleteThis @discussions.microsoft.com> wrote in
> message news:81A68D7C-B9DA-4DAA-9C61-F78E2EB9F8E0@microsoft.com...
> > Hi,
> >
> > with the following code I try to insert buttons into the
> > QuickAccessToolbar,
> > which does not work.
> >
> > Dim strDescription As String
> > strDescription = "<customUI
> > xmlns=""http://schemas.microsoft.com/office/2006/01/customui""
> > loadImage=""LoadImage"">"
> > strDescription = strDescription & _
> > "<ribbon>" & _
> > "<quat>" & _
> > "<documentControls>" & _
> > "<button id=""IDS_WaehlenCombo"" label=""" &
> > GetCheckedResString(IDS_WaehlenCombo) & """
> > onAction=""cmdCommonRibbonBttn""
> > getImage=""GetImage"" />" & _
> > "<button id=""IDS_Auflegen"" label=""" &
> > GetCheckedResString(IDS_Auflegen) & """ onAction=""cmdCommonRibbonBttn""
> > getImage=""GetImage"" />" & _
> > "<button id=""IDS_Aktionen"" label=""" &
> > GetCheckedResString(IDS_Aktionen) & """ onAction=""cmdCommonRibbonBttn""
> > getImage=""GetImage""/>" & _
> > "</documentControls>" & _
> > "</quat>" & _
> > "</ribbon>" & _
> > "</customUI>"
> >
> > Does anybody see my failure?
> > Christian
>
>