Guest User

Untitled

a guest
Nov 16th, 2018
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. Function FnImageInsert(strImagePath, strDocPath)
  2. Dim objWord
  3. Dim objDoc
  4. Set objWord = CreateObject("Word.Application")
  5. Set objDoc = objWord.Documents.Open(strDocPath)
  6. objWord.Visible = True
  7. objWord.Selection.TypeText (vbCrLf & "One Picture will be inserted here....")
  8. objDoc.InlineShapes.AddPicture (strImagePath)
  9. End Function
Add Comment
Please, Sign In to add comment