J
joseph
My question concerns a word template with a userform. The template has,
among others, two bookmarks that need to be back-to-back. The first mark is
for the name of a person. The second bookmark includes the phrase (without
quotations): ", et al." (note that the bookmark leads with a comma, so it has
to be immediately adjacent to the first bookmark). When only the first
bookmark has a value, the result should be: "John" When both bookmarks have
value, I want the result to be: "John, et al." So, I just put them back to
back, as follows: [][]. But that really confuses Word, and it either omits
one of the bookmarks or switches their places: ",et al. John" Not good.
So, right now, I've got them set up with a space in between the bookmarks:
[] [], which results in: "John , et al." (with the space intact). How do I
code that space out of there?
Relevant portions of my code currently read:
With ActiveDocument
.Bookmarks("Name").Range = txtName.Text
.Bookmarks("Etal").Range = strEtal
End With
Thank you in advance.
among others, two bookmarks that need to be back-to-back. The first mark is
for the name of a person. The second bookmark includes the phrase (without
quotations): ", et al." (note that the bookmark leads with a comma, so it has
to be immediately adjacent to the first bookmark). When only the first
bookmark has a value, the result should be: "John" When both bookmarks have
value, I want the result to be: "John, et al." So, I just put them back to
back, as follows: [][]. But that really confuses Word, and it either omits
one of the bookmarks or switches their places: ",et al. John" Not good.
So, right now, I've got them set up with a space in between the bookmarks:
[] [], which results in: "John , et al." (with the space intact). How do I
code that space out of there?
Relevant portions of my code currently read:
With ActiveDocument
.Bookmarks("Name").Range = txtName.Text
.Bookmarks("Etal").Range = strEtal
End With
Thank you in advance.