Dim oApp As Word.Application
Dim myRange As Range
Dim intI As Integer
'
Set oApp = CreateObject("Word.Application")
oApp.Visible = True
oApp.Documents.Open MyPath
intI = ActiveDocument.Paragraphs.Count
Set myRange = ActiveDocument.Range(Start:=ActiveDocument.Paragraphs(1).Range.Start, _
End:=ActiveDocument.Paragraphs(intI).Range.End)
myRange.Delete
myRange.InsertAfter Me.文本51作者: sunredday 时间: 2003-7-22 20:27
如何判断该WORD 文件是否打开?
将WORD 内容转回TEXT51后如何自动分行?作者: tmtony 时间: 2017-9-11 11:19
判断 word.appcation是否打开,可以使用
GetObject("Word.application")