View Single Post
 
Old 05-11-2014, 07:23 AM
lenguyenleduong lenguyenleduong is offline Windows 7 32bit Office 2010 32bit
Novice
 
Join Date: May 2014
Posts: 2
lenguyenleduong is on a distinguished road
Default

Quote:
Originally Posted by gmaxey View Post
This is because your code inserts the picture twice. Try:

Code:
With Application.Dialogs(wdDialogInsertPicture)
  If .Display = -1 Then
    If .Name <> "" Then
      Set Photo = ActiveDocument.InlineShapes.AddPicture(FileName:=.Name, _
                 LinkToFile:=False, SaveWithDocument:=True, _
                 Range:=Selection.Range)
    End If
  End If
End With
Thanks so much.
Reply With Quote