Re: Question about "wdSeekFirstPageHeader"
From: Doug Robbins - Word MVP (dkr_at_NOmvpsSPAM.org)
Date: 04/28/04
- Next message: Doug Robbins - Word MVP: "Re: InsertAddress"
- Previous message: Doug Robbins - Word MVP: "Re: A form for inserting items into a document"
- In reply to: Leila: "Question about "wdSeekFirstPageHeader""
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 28 Apr 2004 12:41:42 +1000
Use:
ActiveDocument.Sections(1).Headers(wdHeaderFooterFirstPage).Range.InsertFile
"C:\test.doc"
--
Please post any further questions or followup to the newsgroups for the
benefit of others who may be interested. Unsolicited questions forwarded
directly to me will only be answered on a paid consulting basis.
Hope this helps
Doug Robbins - Word MVP
"Leila" <anonymous@discussions.microsoft.com> wrote in message
news:502801c42c6f$c0937de0$a101280a@phx.gbl...
> Does anybody know why I get the error"requested view is
> not available" for this code? Any help is appreciated
>
> If (Documents.Count > 0) Then
> With ActiveWindow.ActivePane.View
>
> .Type = wdPrintView
> .SeekView = wdSeekFirstPageHeader
> Selection.InsertFile ("C:\test.doc")
> .SeekView = wdSeekMainDocument
>
> End With
> Selection.HomeKey wdStory
> Selection.EndOf
> End If
>
- Next message: Doug Robbins - Word MVP: "Re: InsertAddress"
- Previous message: Doug Robbins - Word MVP: "Re: A form for inserting items into a document"
- In reply to: Leila: "Question about "wdSeekFirstPageHeader""
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|