When i run the macro i get
Run-time error '1004':
The specified file wasn't found.
this is the macro
Sub PicturePopulator()
Dim B As Range, r As Range, a As Range, _
t As Long, l As Long, w As Long, h As Long
Set B = Range("B1:B1700")
For Each r In B
If r.Value <> "" Then
MyFileAndPath = r.Value
Set a = r.Offset(0, -1)
t = a.Top
l = a.Left
h = a.Height
w = a.Width
ActiveSheet.Shapes.AddPicture MyFileAndPath, msoFalse, msoTrue, l, t, w, h
End If
Next r
End Sub
Solved by D. W. in 13 mins