
Help!!! From form field to Word field
Hi Pete,
1) You need to create [content] bookmarks, rather than Ilocation point
bookmarks. Select something (placeholder text, for instance), then
Insert/Bookmark.
2) Use this code to put information into the bookmark:
Sub InsertInfoAtBkmk()
Dim rngBkm As Word.Range
Dim BkmName As String
BkmName = "Test"
If ActiveDocument.Bookmarks.Exists(BkmName) Then
Set rngBkm = ActiveDocument.Bookmarks(BkmName).Range
rngBkm.Text = "Test"
ActiveDocument.Bookmarks.Add Name:=BkmName, _
Range:=rngBkm
End If
End Sub
Quote:
> I want to give the user the option of correcting information!
> When I run the code for the first time I'll get bookmark: TextBox1 as I
> want.
> But when I run it again I'll get it obviously inserted like Bookmark:
> textbox1textbox1.
> Now, how can I clear the bookmark contents before the new insertion?
Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister
http://go.compuserve.com/MSOfficeForum
This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail :-)