I have a VBA code that pulls photos into excel based on the cells in column D.
Sub Insert2()
Const fPath = "C:\path"
Dim a As Variant, cel As Range, picPath As String
For Each a In Array("F4", "F5", "F6")
    Set cel = Sheets("Medium").Range(a)
    picPath = fPath & "\" & cel.Value & ".jpg"
    
    If Not Dir(picPath, vbDirectory) = vbNullString Then
        With cel.Parent.Pictures.Insert(picPath)
            With .ShapeRange
                .LockAspectRatio = msoFalse
                .Width = 70
                .Height = 70
            End With
            
            .Left = cel.Offset(, 1).Left
            .Top = cel.Offset(, 1).Top
            
        End With
    End If
Next a
End Sub
How can I put a range into the array? I would like to be able to pull F4:F12.
Thanks
 
    