
Signature
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
Doug -- Thank you for getting back to me so quickly. I tried the macro and
it works the first time, but not when I need to use it again. For instace,
you have a few pages of text then section the document off for a landscape
page (which I have in autotext), run the macro and it works by removing the
first page header from the page you are on. But, if you type some more
pages and then need to add another landscape table page, when you use the
macro again, it goes back to the previous section and puts the first page
header in it. The new section doesn't have the header, which is what you
want, but we don't want it to go back to the last section and add it in
again. Only the first section should have that first header, then all other
sections have no header, but from page 2 on there is a footer with a page
number and smaller logo. Do you know why this is happening?
> The code that you would need to prevent the header from the first page of
> the document appearing on the first page of the landscape section would be
[quoted text clipped - 22 lines]
>>by example, so this is difficult for me. I hope you can help, because I've
>>tried everything. Thank you for your time.
Doug Robbins - Word MVP - 21 Nov 2007 19:38 GMT
Where was the selection when you ran it?
You could try the following modification:
With Selection.Sections(1).Headers(wdHeaderFooterFirstPage)
If .LinkToPrevious = True then
.LinkToPrevious = False
.Range.Delete
End If
End With

Signature
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
> Doug -- Thank you for getting back to me so quickly. I tried the macro
> and it works the first time, but not when I need to use it again. For
[quoted text clipped - 36 lines]
>>>by example, so this is difficult for me. I hope you can help, because
>>>I've tried everything. Thank you for your time.
Cathy DeMaggio - 27 Nov 2007 19:47 GMT
Thank you, Doug, this worked!
> Where was the selection when you ran it?
>
[quoted text clipped - 47 lines]
>>>>to create macros by example, so this is difficult for me. I hope you can
>>>>help, because I've tried everything. Thank you for your time.