View Single Post
 
Old 11-12-2018, 06:50 PM
Sarah123 Sarah123 is offline Windows 10 Office 2016
Novice
 
Join Date: Nov 2018
Posts: 9
Sarah123 is on a distinguished road
Default

@AntiqueWhale, my exposure to this is limited; is this what you mean?

Sub AddImageToHeader()

Dim SrcePath As String

SrcePath = "S:\DocBase\Document Templates\Macros\New Macros Nov 2018\Letterhead.jpg"

ThisDocument.Sections.Item(1).Headers(wdHeaderFoot erPrimary) _
.Range.InlineShapes.AddPicture (SrcePath)

Dim header_pic As InlineShape
Set headerPic = ThisDocument.Sections(1).Header(wdHeaderFooterPrim ary).Range.InlineShapes.AddPicture(SrcePath)
With headerPic
.Width = 5.11
.Height = 20.96
End With

End Sub

I getting an error on this?
Reply With Quote