Insert watermark in multiple sections

M

Melissa

Hi there,

I recorded a basic macro to insert a watermark. However, it only inserts
the watermark in the first section. Can you please tell me what code I could
use to insert the watermark into every section of the document?

Thanks
 
J

Jonathan West

Melissa said:
Hi there,

I recorded a basic macro to insert a watermark. However, it only inserts
the watermark in the first section. Can you please tell me what code I
could
use to insert the watermark into every section of the document?

Thanks

Dim oSection As Section
For each oSection in ActiveDocument.Sections
If Not oSection.Headers(wdHeaderFooterPrimary).LinkToPrevious Then
'watermark code goes here
End If
Next oSection

This enables you to insert a watermark into the header of every section
where the header isn't linked to the header of the previous section.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top