M
Michael Hopwood
You need to trap the error and deal with it.
Post your code.
Post your code.
Tom Ogilvy said:Range("F3").Select
If Application.Dialogs(xlDialogInsertPicture).Show Then
Selection.ShapeRange.LockAspectRatio = msoTrue
Selection.ShapeRange.Height = 225#
Selection.ShapeRange.Width = 300#
End If
Range("F23").Select
If Application.Dialogs(xlDialogInsertPicture).Show Then
Selection.ShapeRange.LockAspectRatio = msoTrue
Selection.ShapeRange.Height = 225#
Selection.ShapeRange.Width = 300#
End If
The dialog returns false if the user presses cancel.
--
Regards,
Tom Ogilvy
macro -
if