A
Anne P.
Hi,
I am using code to insert text in a bookmark and retain the bookmark after
the text is inserted. It is working for most things, but I can't get it to
work when I am inserting a date. Following is the code I am using:
If ActiveDocument.Bookmarks.Exists("Date") Then
Set bmRange = ActiveDocument.Bookmarks("Date").Range
bmRange = Format(Now, "mmmm d, YYYY")
ActiveDocument.Bookmarks.Add Name:="Date", Range:=bmRange
End If
Any help is appreciated.
Thanks,
Anne P.
I am using code to insert text in a bookmark and retain the bookmark after
the text is inserted. It is working for most things, but I can't get it to
work when I am inserting a date. Following is the code I am using:
If ActiveDocument.Bookmarks.Exists("Date") Then
Set bmRange = ActiveDocument.Bookmarks("Date").Range
bmRange = Format(Now, "mmmm d, YYYY")
ActiveDocument.Bookmarks.Add Name:="Date", Range:=bmRange
End If
Any help is appreciated.
Thanks,
Anne P.