Sub Main()
Dim fd As FileDialog, adres, x$, i&
adres = Split(Selection.Address, ",")
Set fd = Application.FileDialog(msoFileDialogFilePicker)
Dim vrtSelectedItem As Variant
With fd
.AllowMultiSelect = True
If .Show = -1 Then
i = 0
On Error Resume Next
For Each vrtSelectedItem In .SelectedItems
x = adres(i)
insérerIMG x, vrtSelectedItem, i
i = i + 1
Next
'If the user presses Cancel...
Else
End If
End With
Set fd = Nothing
End Sub
Private Function insérerIMG(adr$, strPath, i)
Dim rng As Range
Set rng = Range(adr)
With ActiveSheet.Pictures.insert(strPath)
With .ShapeRange
.LockAspectRatio = msoFalse: .Width = rng.Width: .Height = rng.Height
.Left = rng.Left: .Top = rng.Top: .Placement = xlMoveAndSize
End With
End With
End Function