[RESOLVED] [Word] How do I write/ insert photo in the header and footer?
All,
I'm developing a program in VB and want to write to a word doc. I have learned how to create a new Word doc, now I'm writing to it and i'm looking for code to insert and format information into the header. Any help would be appreciated.
Thanks,
Re: [Word] How do I write/ insert photo in the header and footer?
try recording a macro
the code should be something like
Code:
d.Sections(1).Headers(1).Shapes.AddPicture FileName, , True, posleft, postop, picwidth, picheight
where d is a document object and parameters valid to suit
there are 3 headers, that can be used general (all pages), righthand pages (or is that left) and firstpage only, help files will give more information
afaik all sections will use the same headers, despite that it looks like each section can use different ones
1 Attachment(s)
Re: [Word] How do I write/ insert photo in the header and footer?
Thank you, this gets me closer. Why is it when I try and record a Macro it gives me the frown face and I cant click into items, but only go through the menu ribbon?Attachment 118831
Re: [Word] How do I write/ insert photo in the header and footer?
that is what macro recorder does, keyboard shortcuts and menus still work