Z
Zippy
I am working with Word automation via Access 97.
I have two Word templates. I open Template1 and then insert Template2
at the end using:
ObjWord.ActiveDocument.Characters.Last.Select
ObjWord.Selection.InsertBreak (Word.WdBreakType.wdPageBreak)
ObjWord.Selection.InsertFile (Template2)
I then decided (due to technical reasons) to first open Template2 and
then add Template1 to the start. I thought I would do it by just
adjusting the code slightly:
ObjWord.ActiveDocument.Characters.First.Select
and then inserting the file. The problem with this is that the first
letter on the page gets selected (well, I did specify 'Select', so what
did I expect) and then over-written when the page is added.
How do I move to the beginning of the page without any text being
selected?
Thanks.
I have two Word templates. I open Template1 and then insert Template2
at the end using:
ObjWord.ActiveDocument.Characters.Last.Select
ObjWord.Selection.InsertBreak (Word.WdBreakType.wdPageBreak)
ObjWord.Selection.InsertFile (Template2)
I then decided (due to technical reasons) to first open Template2 and
then add Template1 to the start. I thought I would do it by just
adjusting the code slightly:
ObjWord.ActiveDocument.Characters.First.Select
and then inserting the file. The problem with this is that the first
letter on the page gets selected (well, I did specify 'Select', so what
did I expect) and then over-written when the page is added.
How do I move to the beginning of the page without any text being
selected?
Thanks.