Private Sub CommandButton1_Click() 'bouton Valider
Dim signet, n%, br As Range, pos&, x$
signet = Array("Nom1", "Prenom1", "Age1") 'liste des signets à étudier, autant que de TextBox
With ThisDocument
For n = 0 To UBound(signet)
Set br = .Bookmarks(signet(n)).Range
pos = br.Start
x = Trim(Me("TextBox" & n + 1))
If x <> "" Then
br = x 'écrase le signet
.Bookmarks.Add signet(n), .Range(pos, pos + Len(x)) 'rétablit le signet
End If
Next
End With
Unload Me
End Sub