D'oh! That certainly would help wouldn't it. ;-)
ActiveWindow.ActivePane.View.NextHeaderFooter
Thanks!
All the macro is doing is updating fields in the document, using a very
cludgy method. The error is coming up because the macro assumes that the
document has two sections, which I guess it doesn't. Quickest fix for you is
just to delete the whole macro and update fields manually. Or insert, as the
first line of code --
On error resume next
This is not a recommended practice in general (it's telling VBA to ignore
all errors) but it's OK in this case because the errors are not harmful.
> D'oh! That certainly would help wouldn't it. ;-)
>
[quoted text clipped - 48 lines]
>> >
>> > Thanks.
Doug Robbins - 14 Jul 2005 23:25 GMT
Or use:
With ActiveDocument
.PrintPreview
.ClosePrintPreview
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
> All the macro is doing is updating fields in the document, using a very
> cludgy method. The error is coming up because the macro assumes that the
[quoted text clipped - 59 lines]
>>> >
>>> > Thanks.
Me - 15 Jul 2005 15:39 GMT
This worked perfectly.
I used this because it's only one line of code opposed to four lines that
Doug suggested.
Thanks guys!
> All the macro is doing is updating fields in the document, using a very
> cludgy method. The error is coming up because the macro assumes that the
[quoted text clipped - 59 lines]
> >> >
> >> > Thanks.
Doug Robbins - 15 Jul 2005 21:48 GMT
My four lines would do the same as everything else that you had and the bad
practice of using On error resume next would not be needed.

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
> This worked perfectly.
>
[quoted text clipped - 70 lines]
>> >> >
>> >> > Thanks.