S
Sol Apache
Hello
I am trying to put a picture into a first page header then its footer. I can
do this manually, but cannot get it to work via VBA. The pictures are in
autotext in the attached template.
At first I had bookmarks but all the macro would do was delete the bookmarks
so I left them out and deleted the reference to the bookmarks since it will
be only the pictures in the header and footer.
Here is the code I am using
Sub LS01()
ActiveDocument.AttachedTemplate.AutoTextEntries(³LSO1 H²).Insert _
Where:=ActiveDocument.Sections(1)(wdHeaderFooterFirstPage).Range
[similar for footer]
End sub
Can anyone let me know what I am doing wrong in this code?
Thanks for any help
Sol
I am trying to put a picture into a first page header then its footer. I can
do this manually, but cannot get it to work via VBA. The pictures are in
autotext in the attached template.
At first I had bookmarks but all the macro would do was delete the bookmarks
so I left them out and deleted the reference to the bookmarks since it will
be only the pictures in the header and footer.
Here is the code I am using
Sub LS01()
ActiveDocument.AttachedTemplate.AutoTextEntries(³LSO1 H²).Insert _
Where:=ActiveDocument.Sections(1)(wdHeaderFooterFirstPage).Range
[similar for footer]
End sub
Can anyone let me know what I am doing wrong in this code?
Thanks for any help
Sol