Private Sub Command1_Click() Dim mywdapp As Object Dim mysel As Object Set mywdapp = CreateObject("word.application") mywdapp.Visible = True mywdapp.Documents.Open "c:\1.doc" mywdapp.ActiveDocument.Content.InsertAfter vbCrLf & "**123456789" mywdapp.ActiveDocument.Content.Find.Execute FindText:="**", _ ReplaceWith:="hello", Replace:=wdReplaceAll End Sub