⑴ vb中如何將打開的word修改後直接保存
Dim AppWord As Word.Application '聲明對象
Set AppWord = CreateObject("Word.Application") '實例化對象
AppWord.Documents.Open App.Path & "\舉例.doc" '打開已經存在的Word文檔
'在文檔開頭輸入「您好!Word VBA」
Selection.TypeText Text:="您好!Word VBA" & vbCrLf
AppWord.Documents.Close True '保存修改
AppWord.Quit '關閉Word
Set AppWord = Nothing '釋放資源