J
Jeffery B Paarsa
Hello,
Private Sub CommandButton1_Click()
With ActiveDocument
.Unprotect
.Range.Font.Color = wdColorRed
.Bookmarks("PLName").Range _
.InsertBefore TextBox1
.Bookmarks("PFName").Range _
.InsertBefore TextBox2
.Bookmarks("PIName").Range _
.InsertBefore TextBox3
.Protect wdAllowOnlyFormFields
End With
UserForm1.Hide
End Sub
The above code will be executed after a UserForm was displayed after double
clicking on a Word Template "xxx.dot". I would like to be able to change
just the font size & color of the text at the time of inserting the captured
fields into the Bookmarks. I used .Range.Font.Color = wdColorRed but this
will change the font color of the entire document not just the inserted
Bookmarks fields.
Anyone has any suggestion? How about changing the Font size of inserted
characters too?
Regards
Private Sub CommandButton1_Click()
With ActiveDocument
.Unprotect
.Range.Font.Color = wdColorRed
.Bookmarks("PLName").Range _
.InsertBefore TextBox1
.Bookmarks("PFName").Range _
.InsertBefore TextBox2
.Bookmarks("PIName").Range _
.InsertBefore TextBox3
.Protect wdAllowOnlyFormFields
End With
UserForm1.Hide
End Sub
The above code will be executed after a UserForm was displayed after double
clicking on a Word Template "xxx.dot". I would like to be able to change
just the font size & color of the text at the time of inserting the captured
fields into the Bookmarks. I used .Range.Font.Color = wdColorRed but this
will change the font color of the entire document not just the inserted
Bookmarks fields.
Anyone has any suggestion? How about changing the Font size of inserted
characters too?
Regards