J
Jules
I have set up a macro to insert a file in each section/page of a header.
The code is:
Dim s As Section
For Each s In ActiveDocument.Sections
s.Headers(wdHeaderFooterPrimary).Range.InsertFile
FileName:="p:\w2000\a\water.doc"
s.Headers(wdHeaderFooterEvenPages).Range.InsertFile
FileName:="p:\w2000\a\water.doc"
s.Headers(wdHeaderFooterFirstPage).Range.InsertFile
FileName:="p:\w2000\a\water.doc"
Next s
The file "p:\w2000\a\water.doc" inserts a WordArt object that is used as a
wartermark.
This code works perfectly and inserts the watermark/wordart into each
section/page of the document.
I would like to be able to set up a macro to delete the "watermark/wordart".
The only thing I have found is
s.headers(wdheaderfooterfirstpage).range.delete (as set up above for first,
primary and even page headers).
This code deletes all of the header, not just the watermark/wordart.
How would I set up the code to only delete the watermark/wordart and not the
rest of the header?
thanks,
The code is:
Dim s As Section
For Each s In ActiveDocument.Sections
s.Headers(wdHeaderFooterPrimary).Range.InsertFile
FileName:="p:\w2000\a\water.doc"
s.Headers(wdHeaderFooterEvenPages).Range.InsertFile
FileName:="p:\w2000\a\water.doc"
s.Headers(wdHeaderFooterFirstPage).Range.InsertFile
FileName:="p:\w2000\a\water.doc"
Next s
The file "p:\w2000\a\water.doc" inserts a WordArt object that is used as a
wartermark.
This code works perfectly and inserts the watermark/wordart into each
section/page of the document.
I would like to be able to set up a macro to delete the "watermark/wordart".
The only thing I have found is
s.headers(wdheaderfooterfirstpage).range.delete (as set up above for first,
primary and even page headers).
This code deletes all of the header, not just the watermark/wordart.
How would I set up the code to only delete the watermark/wordart and not the
rest of the header?
thanks,