
MS PJ 2000 and MS Word via VBA
Try This:
First Set a reference to the object lib for your version of Word. (Tools
| References)
Sub GetWord_OpenDoc_Paste_PageBreak_Save_CloseWord()
Dim wdApp As Word.Application
Set wdApp = New Word.Application
With wdApp
.Documents.Open FileName:="c:\test.doc"
.Selection.Paste
.Selection.InsertBreak Type:=wdPageBreak
.ActiveDocument.Close SaveChanges:=True
End With
wdApp.Quit
Set wdApp = Nothing
End Sub
--
Brian K
MS Project MVP