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.
 
Top