Question about "wdSeekFirstPageHeader"

L

Leila

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
 
D

Doug Robbins - Word MVP

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top