菜鸟再次求救
怎么样才能用vb打开word文档啊?我只会打开excel文件,急啊,高手帮帮我啊!!谢谢。
Dim appWord As Word.Application
Dim wrdDoc As Word.Document
Dim strFileName As String
strFileName = "D:\Articles\Title.doc"
Set appWord = New Word.Application
Set wrdDoc = appWord.Documents.Open(strFileName)
MsgBox wrdDoc.Path & "\" & wrdDoc.Name
wrdDoc.Close False
appWord.Quit
Set wrdDoc = Nothing
Set appWord = Nothing