C
Christian Lehmann
Hello,
I want to update a bookmark in a word file.
My code looks like this:
def UpdateBookmark(BookmarkToUpdate, TextToUse):
FieldRange = Document.Bookmarks(BookmarkToUpdate).Range
FieldRange.Text = TextToUse # error message
ActiveDocument.Bookmarks.Add(BookmarkToUpdate,FieldRange)
UpdateBookmark ("Bookmarkname","newString")
when i assign the new string an error message occurs.
I m using Office XP...
Thanks
Christian
I want to update a bookmark in a word file.
My code looks like this:
def UpdateBookmark(BookmarkToUpdate, TextToUse):
FieldRange = Document.Bookmarks(BookmarkToUpdate).Range
FieldRange.Text = TextToUse # error message
ActiveDocument.Bookmarks.Add(BookmarkToUpdate,FieldRange)
UpdateBookmark ("Bookmarkname","newString")
when i assign the new string an error message occurs.
I m using Office XP...
Thanks
Christian