Running headers with a logo

A

andreas

Dear Experts:

I would like to place a logo as a running header on even and odd pages
of the current document:

It has the following setup

Page Layout:

• Different even and odd headers and footers
• Mirror Margins

The logo (c:\CompanyLogo.png) to be inserted should have the following
properties:
• Picture Layout: in front of text
• Picture Position:
Horizontal: Book layout, outside of margin
Vertical: Absolute position, 1.4 cm below Page


I know the code to insert headers programmatically such as

sect.PageSetup.OddAndEvenPagesHeaderFooter = True
sect.PageSetup.MirrorMargins = True


Set rng = sect.Headers(wdHeaderFooterEvenPages).range
rng. .....etc.

So there is no need to show me this.

Help is much appreciated. Thank you very much in advance.

Regards, Andreas
 
M

macropod

Hi andreas,

Rather than creating the document layout with code each time, why not simply create a template with the required layout, then use
that template?

--
Cheers
macropod
[Microsoft MVP - Word]


Dear Experts:

I would like to place a logo as a running header on even and odd pages
of the current document:

It has the following setup

Page Layout:

• Different even and odd headers and footers
• Mirror Margins

The logo (c:\CompanyLogo.png) to be inserted should have the following
properties:
• Picture Layout: in front of text
• Picture Position:
Horizontal: Book layout, outside of margin
Vertical: Absolute position, 1.4 cm below Page


I know the code to insert headers programmatically such as

sect.PageSetup.OddAndEvenPagesHeaderFooter = True
sect.PageSetup.MirrorMargins = True


Set rng = sect.Headers(wdHeaderFooterEvenPages).range
rng. .....etc.

So there is no need to show me this.

Help is much appreciated. Thank you very much in advance.

Regards, Andreas
 
A

andreas

Hi andreas,

Rather than creating the document layout with code each time, why not simply create a template with the required layout, then use
that template?

--
Cheers
macropod
[Microsoft MVP - Word]


Dear Experts:

I would like to place a logo as a running header on even and odd pages
of the current document:

It  has the following setup

Page Layout:

• Different even and odd headers and footers
• Mirror Margins

The logo (c:\CompanyLogo.png) to be inserted should have the following
properties:
• Picture Layout: in front of text
• Picture Position:
Horizontal: Book layout, outside of margin
Vertical: Absolute position, 1.4 cm below Page

I know the code to insert headers programmatically such as

    sect.PageSetup.OddAndEvenPagesHeaderFooter = True
    sect.PageSetup.MirrorMargins = True

Set rng = sect.Headers(wdHeaderFooterEvenPages).range
rng. .....etc.

So there is no need to show me this.

Help is much appreciated. Thank you very much in advance.

Regards, Andreas

Hi macropod,

thank you very much for your swift response. I am aware that creating
a template would be the ideal solution for my question. Nevertheless,
I would like to know the VBA code to achieve the insertion of the
company logo.

Thank you very much for your help in advance.

Regards, Andreas
 
D

Doug Robbins - Word MVP

Creating the code to do this is more trouble than it is worth. Better to
just set it up manually, in a template if you need to use it over and over
again.

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP, originally posted via msnews.microsoft.com
 
A

andreas

Creating the code to do this is more trouble than it is worth.  Better to
just set it up manually, in a template if you need to use it over and over
again.

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP, originally posted via msnews.microsoft.com

















- Show quoted text -

Hi macropod,

ok, thank you very much for your help. I will heed your advice. Thank
you.

Regards, Andreas
 
F

Fumei2 via OfficeKB.com

Creating the code to do this is more trouble than it is worth.



Amen to that.
Creating the code to do this is more trouble than it is worth.  Better to
just set it up manually, in a template if you need to use it over and over
[quoted text clipped - 42 lines]
- Show quoted text -

Hi macropod,

ok, thank you very much for your help. I will heed your advice. Thank
you.

Regards, Andreas
 

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