N
Nicolas Tostin
Hi,
I got a little problem.
I try this example http://www.computorcompanion.com/LPMArticle.asp?ID=224
which is exactly what I need : inserting my client name in various place in
a Word Document (I'm using Word 2000)
I try something very simple :
- add a "clientName" bookmark in my doc
- type text and add a { REF clientName } reference to get the value of my
bookmark
- I made this very little script :
Sub test()
ActiveDocument.Bookmarks("clientName").Range.Text = "John Doe"
Selection.WholeStory
Selection.Fields.Update
Selection.Fields.ToggleShowCodes
End Sub
Then I got my bookmark point updated as I expected but the REF point is not.
What am I doing wrong ?
Thanks a lot for your help
Nicolas
I got a little problem.
I try this example http://www.computorcompanion.com/LPMArticle.asp?ID=224
which is exactly what I need : inserting my client name in various place in
a Word Document (I'm using Word 2000)
I try something very simple :
- add a "clientName" bookmark in my doc
- type text and add a { REF clientName } reference to get the value of my
bookmark
- I made this very little script :
Sub test()
ActiveDocument.Bookmarks("clientName").Range.Text = "John Doe"
Selection.WholeStory
Selection.Fields.Update
Selection.Fields.ToggleShowCodes
End Sub
Then I got my bookmark point updated as I expected but the REF point is not.
What am I doing wrong ?
Thanks a lot for your help
Nicolas