Dim app As New MSWord.Application
try
Dim fileName = "d:\test.doc"
Dim doc = app.Documents.Open(fileName)
app.ActiveWindow.Selection.WholeStory
app.ActiveWindow.Selection.MoveRight(Unit:=1, Count:=1)
app.ActiveWindow.Selection.TypeParagraph
app.ActiveWindow.Selection.TypeText(Text:="123456")
app.ActiveWindow.Selection.InlineShapes.AddPicture(FileName:= _
"d:\test.jpg" _
, LinkToFile:=False, SaveWithDocument:=True)
app.ActiveWindow.Selection.TypeParagraph
app.ActiveWindow.Selection.TypeText(Text:="789")
app.Visible = True
catch ex As exception
msgbox(ex.message)
app.Quit
finally
End try