This is my code
Dim Pict
Dim ImgFileFormat As String
Dim PictCell As Range
Dim Ans As Integer
Dim nextcell
Dim IPict As Variant
'ActiveSheet.Protect True, True, True, True, True
ImgFileFormat = "Image Files (*.jpg),others, tif (*.tif),*.tif, jpg (*.jpg),*.jpg"
GetPict:
Pict = Application.GetOpenFilename(ImgFileFormat)
'Note you can load in any nearly file format
If Pict = False Then End
'Ans = MsgBox("Open : " & Pict, vbYesNo, "Insert Picture")
'If Ans = vbNo Then GoTo GetPict
'Now paste to userselected cell
GetCell:
Set PictCell = Application.ActiveCell 'Application.InputBox("Select the cell to insert into", Type:=8)
If PictCell.Count > 1 Then MsgBox "Select ONE cell only": GoTo GetCell
PictCell.Select
Dim FSO As Object
Set FSO = CreateObject("Scripting.FileSystemObject")
Dim filename As String
Dim folderName As String
filename = FSO.GetBaseName(Pict)
ActiveSheet.Pictures.Insert(Pict).Select
Selection.Name = filename
Selection.Height = Application.InchesToPoints(1)
Selection.Width = Application.InchesToPoints(1.75)
folderName = "c:\Temp\" & filename
SavePicture Selection.Name.Picture, folderName