F
FertRob
I,m trying to insert a bookmark at the end of a document. I tried
several things but nothing works. I'm working with word 2000 this is the
code i'm using
Dim pRange As Word.Range, Hdoc As Document
If Hdoc.Bookmarks.Exists("OndTek") = False Then
Set pRange = ??????????????
Else
Set pRange = Hdoc.Bookmarks("OndTek").Range
End If
pRange = StrOndertekening
Hdoc.Bookmarks.Add Name:="OndTek", Range:=pRange
On the ??????? i tried hdoc.goto, selection, hdoc.end etc nothing works,
i am getting errors on object en type not corresponding.
Can anyone help me
Thanks
Robert
several things but nothing works. I'm working with word 2000 this is the
code i'm using
Dim pRange As Word.Range, Hdoc As Document
If Hdoc.Bookmarks.Exists("OndTek") = False Then
Set pRange = ??????????????
Else
Set pRange = Hdoc.Bookmarks("OndTek").Range
End If
pRange = StrOndertekening
Hdoc.Bookmarks.Add Name:="OndTek", Range:=pRange
On the ??????? i tried hdoc.goto, selection, hdoc.end etc nothing works,
i am getting errors on object en type not corresponding.
Can anyone help me
Thanks
Robert