How to put an image in a header/footer

A

albissim

Hallo,
I need to insert an image in all the headers of a document with more than
one section, is there anybody could help me with some code ?

Thanks in advance

Regards,

Alberto Simone
 
C

Cindy M.

Hi =?Utf-8?B?YWxiaXNzaW0=?=,
I need to insert an image in all the headers of a document with more than
one section, is there anybody could help me with some code ?
What's the "Same as Previous" setting in the headers? And which version of
Word?

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail :)
 
A

albissim

Sorry,
I didn't think this info was important ...

Word 2003
"Same as Previous"=True ...
anyway all the headers (first page enclosed) must show the same image ...

Thanks a lot !

Alberto Simone


"Cindy M." ha scritto:
 
C

Cindy M.

Hi =?Utf-8?B?YWxiaXNzaW0=?=,
Word 2003
"Same as Previous"=True ...
anyway all the headers (first page enclosed) must show the same image ...
As long as "Same as Previous" is true, then you only need to (and should)
insert the picture once - it should then appear in all the headers/footers.

Here's a bit of sample code that demonstrates

Dim shp as Word.Shape
Set shp = _
ActiveDocument.Sections(1).Headers( _
wdHeaderFooterPrimary).Shapes.AddShape( _
msoShapeOval, 20, 50, 100, 300)

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail :)
 
A

albissim

OK Cindy,
now I've just to add a file image instead of a shape ... what's the right
code to do this ?

Thanks a lot !

Alberto Simone


"Cindy M." ha scritto:
 
C

Cindy M.

Hi =?Utf-8?B?YWxiaXNzaW0=?=,
now I've just to add a file image instead of a shape ... what's the right
code to do this ?
Type Shape. and you'll get a list of possible methods in Intellisense. I
think AddPicture is the one you're looking for. (Note: the macro recorder
would have given you that.)

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top