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
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