2个回答
展开全部
Private Sub CommandButton1_Click()
Dim wordObj
Set wordObj = CreateObject("Word.application")
With wordObj.documents.Open("F:\shiyan.docx")
.Content.Find.Execute "xxx", , , , , , , , , Text1.Text, 2
wordObj.Visible = False
wordObj.PrintPreview = False
wordObj.PrintOut
.Close False
End With
wordObj.Quit
End Sub
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询