
Adjusting headers/footers in a macro in Word 2000
Hi Unni,
The reason that the table takes on the width of the portrait section is that
until is reset, the header will be formatted as Same as Previous. If you
include the following line in your macro before you insert the table, the
table will be the full width of the Landscape orientation:
Selection.HeaderFooter.LinkToPrevious = Not
Selection.HeaderFooter.LinkToPrevious
Hope this helps,
Doug Robbins - Word MVP
Please post any follow-up to the Newsgroups so that others may benefit
therefrom or contribute thereto.
Quote:
> Hi,
> I have a document with pageorientation = Portrait.
> I have created a macro which add a new page with orientation = Landscape
in
> a new section.
> The header/footer (in section 2), which is a table, is automatically
> inserted on the new page.
> The problem is that i want the table to expand to width = 26 cm only on
the
> page with orientation = Landscape, not only 16 cm as it is on pages with
> orientation = Portrait.
> Does anyone have a solution to this problem?
> Thanks in advance
> Unni