A
Angyl
I'm new to VB and following a tutorial for creating a Userform. I need a
simple modification to the code that has been given in this tutorial.
I created a Form in word using bookmarked form fields which have various
calculations on them.
The VB code I have for the Userform does this:
With ActiveDocument
.Bookmarks("ClientName").Range _
.InsertBefore ClientName
.Bookmarks("Description1").Range _
.InsertBefore Description1
End With
UserForm1.Hide
End Sub
The problem I'm having is with that "InsertBefore" command. I don't want it
to insert the text BEFORE the named bookmarked field, I want it *IN* the
named bookmarked field.
I tried searching for help in the VB for this and saw all sorts of
InsertAfter and at the end of the document or beginning of the document and
other types of Inserts but nothing seems to help me get something straight IN
the fields.
Help, please?
simple modification to the code that has been given in this tutorial.
I created a Form in word using bookmarked form fields which have various
calculations on them.
The VB code I have for the Userform does this:
With ActiveDocument
.Bookmarks("ClientName").Range _
.InsertBefore ClientName
.Bookmarks("Description1").Range _
.InsertBefore Description1
End With
UserForm1.Hide
End Sub
The problem I'm having is with that "InsertBefore" command. I don't want it
to insert the text BEFORE the named bookmarked field, I want it *IN* the
named bookmarked field.
I tried searching for help in the VB for this and saw all sorts of
InsertAfter and at the end of the document or beginning of the document and
other types of Inserts but nothing seems to help me get something straight IN
the fields.
Help, please?