Re: Question about "wdSeekFirstPageHeader"

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Doug Robbins - Word MVP (dkr_at_NOmvpsSPAM.org)
Date: 04/28/04


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
>


Relevant Pages

  • Re: merge a photo from access database into word
    ... Please post any further questions or followup to the newsgroups for the ... "Jon" wrote in message ... >>Doug Robbins - Word MVP ...
    (microsoft.public.word.mailmerge.fields)
  • Re: Text to lowercase
    ... >> Please post any further questions or followup to the newsgroups for the ... >> Doug Robbins - Word MVP ...
    (microsoft.public.word.newusers)
  • Re: losing properties when merging
    ... Change the switch to ... Please post any further questions or followup to the newsgroups for the ... >>Doug Robbins - Word MVP ...
    (microsoft.public.word.mailmerge.fields)
  • Re: selecting multiple bits of text
    ... Please post any further questions or followup to the newsgroups for the ... Doug Robbins - Word MVP ... > so that i can highlight multiple sections of text in word? ...
    (microsoft.public.word.docmanagement)
  • Re: prints in wrong font
    ... Please post any further questions or followup to the newsgroups for the ... Doug Robbins - Word MVP ... How can I fix this so my ...
    (microsoft.public.word.printingfonts)