View Single Post
 
Old 12-30-2015, 01:40 PM
tanzinim tanzinim is offline Windows 7 64bit Office 2007
Novice
 
Join Date: Dec 2015
Posts: 3
tanzinim is on a distinguished road
Default

Gmaxey thank you very much I worked around and finally I solved thanks to your help ....


Quote:
Originally Posted by gmaxey View Post
Use an error handler:

Code:
oRng.MoveEnd wdWord, 1
On Error Resume Next
Selection.InlineShapes.AddPicture FileName:=PixPathandName & Trim(oRng.Text) & ".JPG", LinkToFile:=False, SaveWithDocument:=True
Reply With Quote