Change .TopMargin on all pages

T

TMc

Through some vb code, I'm changing the top margin to .6 but it only affects
the first page. How can I code it to affect all pages?
 
K

Klaus Linke

TMc said:
Through some vb code, I'm changing the top margin to .6 but it
only affects the first page. How can I code it to affect all pages?


What's your code? Perhaps you've applied .PageSetup to the Selection or Section instead of (the whole) ActiveDocument?

Regards,
Klaus
 
T

TMc

ActiveDocument.PageSetup.TopMargin = InchesToPoints(0.6)


TMc said:
Through some vb code, I'm changing the top margin to .6 but it
only affects the first page. How can I code it to affect all pages?


What's your code? Perhaps you've applied .PageSetup to the Selection or
Section instead of (the whole) ActiveDocument?

Regards,
Klaus
 
K

Klaus Linke

Should work, as far as I can see. Do you have text boundaries visible on screen, so you can see what else might be going on (headers...)?

Regards,
Klaus
 
J

Jeff

Try forcing the issue...

With ActiveDocument.Range(Start:=ActiveDocument.Content.Start, _
End:=ActiveDocument.Content.End)

.PageSetup.TopMargin = InchesToPoints(0.6)

End With
 

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