Option Explicit
Sub Insert_Picture()
'prompt user to select picture
Dim pictureFilename As Variant
pictureFilename = Application.GetOpenFilename( _
FileFilter:="Image Files (*.gif;*.jpg;*.png), *.gif;*.jpg;*.png", _
Title:="Insert Picture", _
ButtonText:="Insert")
'if user cancels, exit sub
If pictureFilename = False Then Exit Sub
'insert and position picture at active cell
ActiveSheet.Shapes.AddPicture _
Filename:=pictureFilename, _
linktofile:=msoFalse, _
savewithdocument:=msoTrue, _
Left:=ActiveCell.Left, _
Top:=ActiveCell.Top, _
Width:=-1, _
Height:=-1
End Sub