Mkate was telling us:
Mkate nous racontait que :
> Hello,
>
[quoted text clipped - 15 lines]
> experience or perhaps a fix for the problem? Could it be another
> application toolbar causing the conflict?
If you simply created the buttons on the toolbar by using the style names,
then they will only work in the language used to create those buttons.
If I use an English version of Word to create a toolbar style button for
"Heading 1", this button will not work in French because the style "Heading
1" does not exist in French; it is called "Titre 1".
So, you need a macro behind the button to make this button international.
For example, on an English version of Word, I created a toolbar, on this
toolbar I added a menu, in this menu I added three times the same macro
(GetStyle).
Then I gave a different caption to each of these button: "Titre 1", "Titre
2" and "Titre 3".
Then I used these macros to apply the style. This will work in any localized
version of Word/Office.
'_______________________________________
Sub GetStyle()
Select Case Application.CommandBars.ActionControl.Caption
Case "Titre 1"
ApplyStyle ActiveDocument.Styles(wdStyleHeading1)
Case "Titre 2"
ApplyStyle ActiveDocument.Styles(wdStyleHeading2)
Case "Titre 3"
ApplyStyle ActiveDocument.Styles(wdStyleHeading3)
End Select
End Sub
'_______________________________________
'_______________________________________
Sub ApplyStyle(strStyleName As String)
Selection.Range.Style = strStyleName
End Sub
'_______________________________________

Signature
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
jmarcilREMOVE@CAPSsympatico.caTHISTOO
Word MVP site: http://www.word.mvps.org
Mkate - 19 Oct 2006 23:23 GMT
Thank you very much for the detailed explanation and sample code. This is
most helpful.
Have a nice day.

Signature
Mkate
> Mkate was telling us:
> Mkate nous racontait que :
[quoted text clipped - 56 lines]
> End Sub
> '_______________________________________