Setting Margins in Middle of Document

  • Thread starter Thread starter Alan
  • Start date Start date
A

Alan

I am using a Word document containing a graphic/logo at the start of
the first page only. I have some VBA code that sets the document's
margins and pastes several Excel tables in the document. . . .

Here is what happens:

(a) When I run the macro on the Word document, the header is
positioned correctly, but the borders of the pasted tables exceed the
right and left margins.

(b) When I manually change the margins of the Word document in Page
Setup to correspond to the desired right and left margins, I get the
same problem, plus the graphic gets shifted left.

(c) When I use a new document without the graphic, the tables are
placed perfectly.

Questions:

1. Is there a way to change the margins below the graphic only, not
for the entire document (i.e., not using Page Setup settings)?

2. Is there better/easier approach to managing the layout of a Word
document?

Thanks, Alan
 
Position the graphic relative to the page rather than relative to the
margins.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
http://word.mvps.org
 
This assumes that your graphic is "wrapped" rather than In Line With Text.
On the Picture toolbar, click Format | Picture (or double-click the picture
to open the dialog. On the Layout tab, choose some wrapping other than In
Line With Text (if you haven't already done this) and then click Advanced.
You'll see the options to set the position exactly relative to various
points, including paragraph, margins, and page. If you set the position
relative to the top and left of the page, no change of margins will make any
difference.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
http://word.mvps.org
 
Back
Top