7,785
社区成员




Private Sub Command1_Click()
Dim wordApp As New Word.Application
'添加Document文档对象
wordApp.Documents.Add
'设置Word对象标题
wordApp.Caption = "WORD文档"
With wordApp.Selection
.typetext Text1.Text
End With
'保存文档为RTF
wordApp.ActiveDocument.SaveAs App.Path & "\文件名.rtf"
'设置Word对象可见
wordApp.Visible = True
End Sub