![]() |
#2
|
|||
|
|||
![]()
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 |
Tags |
bookmarks, populate, userform |
Thread Tools | |
Display Modes | |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
jrooney7 | Word VBA | 2 | 04-14-2019 06:30 PM |
Dynamic Userform multiselect listbox populate | trevorc | Excel Programming | 1 | 12-03-2018 02:49 PM |
Userform calls other userform, then populate worksheet | Lehoi | Excel Programming | 0 | 02-03-2016 02:58 PM |
Trying to populate Word bookmarks with excel UserForm | smd1112 | Excel Programming | 7 | 09-03-2014 09:42 PM |
Word doc bug when closing from userform command button click macro | Joe Patrick | Word | 1 | 07-05-2011 08:53 PM |