在一楼的基础上,增加
Private Sub Com_print_Click()
Dim Wdapp As Word.Application
Dim Wddoc As Word.Document
Set Wdapp = CreateObject("word.Application")
'创建word程序,打开word
Set Wddoc = Wdapp.Documents.Add
'在word中添加一个新文档
With Wdapp
.Visible = True
.Activate
Wddoc.Range.InsertAfter Text1.Text
End With
Set Wdapp = Nothing
'清除word对象
Set Wddoc = Nothing
End Sub