C
Cor van der Bliek
Word 2007 NL
I have a doc with more than 1 section, of which the headers are not linked.
I have a macro to put a logo in the header of each section.
I can't seem to get it working:
Sub logo()
Const nvPic As String = "G:\Templates\wst.png"
With ActiveDocument
For i = 1 To .Sections.Count
With .Sections(i)
Set oShape =
..Headers(wdHeaderFooterPrimary).Shapes.AddPicture(nvPic)
End With
Next i
End With
End Sub
The result is as many logos in the header of section 1 as the total of
sections.
I have a doc with more than 1 section, of which the headers are not linked.
I have a macro to put a logo in the header of each section.
I can't seem to get it working:
Sub logo()
Const nvPic As String = "G:\Templates\wst.png"
With ActiveDocument
For i = 1 To .Sections.Count
With .Sections(i)
Set oShape =
..Headers(wdHeaderFooterPrimary).Shapes.AddPicture(nvPic)
End With
Next i
End With
End Sub
The result is as many logos in the header of section 1 as the total of
sections.