View Single Post
 
Old 05-04-2022, 08:39 AM
Italophile Italophile is online now Windows 11 Office 2021
Expert
 
Join Date: Mar 2022
Posts: 539
Italophile is just really niceItalophile is just really niceItalophile is just really niceItalophile is just really nice
Default

As your bookmarks enclose the text you insert all you need to do is reverse the logic of your existing code. You would put this code into the Initialize event of the user form, e.g.

Code:
Private Sub UserForm_Initialize()
    Me.TextBoxClientCompanyName.Value = ActiveDocument.Bookmarks("NameOfClientHeader").Range.Text
End Sub
Reply With Quote