I am using this code posted by WebTest:

VB Code:
  1. If ActiveWindow.View.SplitSpecial <> wdPaneNone Then
  2.         ActiveWindow.Panes(2).Close
  3.     End If
  4.    
  5.     If ActiveWindow.ActivePane.View.Type = wdNormalView Or ActiveWindow. _
  6.         ActivePane.View.Type = wdOutlineView Then
  7.         ActiveWindow.ActivePane.View.Type = wdPrintView
  8.     End If
  9.    
  10.     ActiveWindow.ActivePane.View.SeekView = wdSeekCurrentPageHeader
  11.    
  12.     If Selection.HeaderFooter.IsHeader = True Then
  13.         ActiveWindow.ActivePane.View.SeekView = wdSeekCurrentPageFooter
  14.     Else
  15.         ActiveWindow.ActivePane.View.SeekView = wdSeekCurrentPageHeader
  16.     End If
  17.    
  18.     Selection.Find.ClearFormatting
  19.    
  20.     With Selection.Find
  21.         .Text = "REPORTING: "
  22.         .Replacement.Text = ""
  23.         .Forward = True
  24.         .Wrap = wdFindContinue
  25.         .Format = False
  26.        .MatchCase = False
  27.         .MatchWholeWord = False
  28.         .MatchWildcards = False
  29.         .MatchSoundsLike = False
  30.         .MatchAllWordForms = False
  31.     End With
  32.    
  33.     Selection.Find.Execute
  34.     Selection.MoveRight Unit:=wdCharacter, Count:=1
  35.     Selection.TypeText Text:=" " & strName & "       DATE: " & Date

It seeks out the footer in a template document I have set, and successfully prints the document, then closes the document and ms word.

All seems fine until.... I print the next document. Then I get the following:

At this line:

VB Code:
  1. If ActiveWindow.View.SplitSpecial <> wdPaneNone Then

Runtime error '462':
The remote server machine does not exists or is unavailable
All data inserted into the document succeds, it is when I modify the footer the second time. If I close and restart my application, then it prints fine the first time. Just fails on the footer insert on the second pass.

This is driving me crazy, why is this happening?