Adjusting headers/footers in a macro in Word 2000 
Author Message
 Adjusting headers/footers in a macro in Word 2000

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



Sun, 09 Jun 2002 03:00:00 GMT  
 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



Mon, 10 Jun 2002 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Outlook 2000 Addin - How to add the header and footer for a print copy

2. Adjusting an Embedded Excel Worksheet in Word 2000

3. Formatting three different footers and headers with a macro in Office XP

4. Header and Footer Macro

5. Header/Footer macro

6. Formatting three different footers and headers with macros

7. Macro to convert currency to words - Word 2000

8. Word 6.0 macro under word 2000

9. My Word 97 macros don't run in Word 2000

10. Macros under word 6.0 and word 2000

11. Word 2000 macro running under Word 97

12. Controlling Header/Footer in Word Using Excel

 

 
Powered by phpBB® Forum Software