bonjour
avec ce code le curseur se place devant le signet mais ne remplace pas le nom de mon signet par le texte tapé dans ma boite de dialogue
Merci de votre patience je suis débutant
A+ didier
Private Sub CommandButton1_Click()
End Sub
Private Sub TextBox1_Change()
ActiveDocument.Bookmarks("nom").Select
Selection.InsertAfter Ma_variable
if ActiveDocument.Bookmarks.Exist("nom") then
ActiveDocument.Bookmarks("nom").Select
Selection.Text = Ta_Variable
ActiveDocument.Bookmarks.Add "nom", Selection.Range
end if
rivate Sub TextBox1_Change()
ActiveDocument.Bookmarks("nom").Select
Selection.InsertAfter Ma_Variable
If ActiveDocument.Bookmarks.Exist("nom") Then
ActiveDocument.Bookmarks("nom").Select
Selection.Text = Ma_Variable
ActiveDocument.Bookmarks.Add "nom", Selection.Range
End If
rivate Sub TextBox1_Change()
ActiveDocument.Bookmarks("nom").Select
Selection.InsertAfter Ma_Variable
If ActiveDocument.Bookmarks.Exist("nom") Then
ActiveDocument.Bookmarks("nom").Select
Selection.Text = Ma_Variable
ActiveDocument.Bookmarks.Add "nom", Selection.Range
End If