bonjour,
j'ai essayé ta methode jordinette,
mais j'ai un message d'erreur une fois passé la deprotection maintenant, le voici
Erreur d'execution 91
Variable objet ou variable de bloc With non définie
elle se declenche sur cette partie de code, qui me permet de mettre
mon numero dans l'en tete de page :
" ActiveWindow.ActivePane.View.SeekView = wdSeekCurrentPageHeader "
Quelqu'un pourrait il m'expliquer ce qui coince ???? merci
je vous remet mon code entier, car vu comment apparait mon message initial

Vous pouvez l'essayer me dire si il fonctionne chez vous, merci
Code:
Private Sub CommandButton1_Click()
num = ActiveDocument.AttachedTemplate.AutoTextEntries("numéro").Value
num = num + 1
If ActiveDocument.ProtectionType<>wdNoProtection Then
ActiveDocument.Unprotect
End If
ActiveWindow.ActivePane.View.SeekView = wdSeekCurrentPageHeader
ActiveDocument.AttachedTemplate.AutoTextEntries("numéro").Value = num
Selection.TypeText Text:="N° " & num & "/2006"
num = Right("0000" & num, 4)
SendKeys "o"
ActiveDocument.SaveAs FileName:="N" & num & ".doc"
ActiveWindow.ActivePane.View.SeekView = wdSeekMainDocument
If ActiveDocument.ProtectionType=wdNoProtection Then
ActiveDocument.Protect wdAllowOnlyFormFields
End If
End Sub
Benco