V
Vivian Carroll
In Word 2002, I used the code below in one template and it works fine. Now I
have put the same code into a new template and when it gets to the
".Execute" line I get error code 5382 "Graphics filter unable to onvert this
file...". (Same computer, same version of Word 2002.) I am able to insert
the picture into the template manually using Insert, Picture, from File.
What do I need to do to the code to make it insert the chosen picture?
TIA,
Vivian
With Dialogs(wdDialogInsertPicture)
'If the user picks a file, insert it
If .Display = -1 Then
.Execute
'If the user clicks Cancel, close the dialog and end the macro
Else
Exit Sub
End If
End With
have put the same code into a new template and when it gets to the
".Execute" line I get error code 5382 "Graphics filter unable to onvert this
file...". (Same computer, same version of Word 2002.) I am able to insert
the picture into the template manually using Insert, Picture, from File.
What do I need to do to the code to make it insert the chosen picture?
TIA,
Vivian
With Dialogs(wdDialogInsertPicture)
'If the user picks a file, insert it
If .Display = -1 Then
.Execute
'If the user clicks Cancel, close the dialog and end the macro
Else
Exit Sub
End If
End With