Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Function FnImageInsert(strImagePath, strDocPath)
- Dim objWord
- Dim objDoc
- Set objWord = CreateObject("Word.Application")
- Set objDoc = objWord.Documents.Open(strDocPath)
- objWord.Visible = True
- objWord.Selection.TypeText (vbCrLf & "One Picture will be inserted here....")
- objDoc.InlineShapes.AddPicture (strImagePath)
- End Function
Add Comment
Please, Sign In to add comment