[vba]Код
Sub OpenWord()
Dim objWrdApp As Object, objWrdDoc As Object
Sret objWdApp = CreateObject("Word.Application")
objWrdApp.Visible = True
Set objWrdDoc = objWrdApp.Documents.Open("\\sten.local\central\UserData\Морозов\Мои документы\ммм1.docx")
With objWrdDoc.Range
.Copy
.Collapse wdCollapseEnd
.Paste
End With
GetObject("New:{1C3B4210-F441-11CE-B9EA-00AA006B1A69}").Clear
End Sub
[/vba]или[vba]Код
Sub OpenWord()
Dim objWrdApp As Object, objWrdDoc As Object, R As Object
Sret objWdApp = CreateObject("Word.Application")
objWrdApp.Visible = True
Set objWrdDoc = objWrdApp.Documents.Open("\\sten.local\central\UserData\Морозов\Мои документы\ммм1.docx")
With objWrdDoc.Range
Set R = objWrdDoc.Range(.Start, .End - 1)
.InsertParagraphAfter
.InsertAfter R
End With
End Sub
[/vba]