excel - How to add a picture from a file to the header of a Word document -



excel - How to add a picture from a file to the header of a Word document -

i have been trying add together header image word document create vba running in excel.

i set word document , utilize statement:

set applword = new word.application applword.visible = true set docword = applword.documents.add docword.sections(1).headers(wbheaderfooterprimary).range.inlineshapes.addpicture filename:= _ "c:\users\folder\picture.png"

but maintain getting runtime error 5941.

i have tried , not find fix.

looking kind of help on solution problem!

excel vba excel-vba

Comments

Popular posts from this blog

xslt - DocBook 5 to PDF transform failing with error: "fo:flow" is missing child elements. Required content model: marker* -

mediawiki - How do I insert tables inside infoboxes on Wikia pages? -

Local Service User Logged into Windows -