[font=Verdana][color=darkblue]Option[/color] [color=darkblue]Explicit[/color]
[color=darkblue]Sub[/color] InsertImages()
[color=darkblue]Dim[/color] strPath [color=darkblue]As[/color] [color=darkblue]String[/color]
[color=darkblue]Dim[/color] strFile [color=darkblue]As[/color] [color=darkblue]String[/color]
[color=darkblue]Dim[/color] LastRow [color=darkblue]As[/color] [color=darkblue]Long[/color]
[color=darkblue]Dim[/color] i [color=darkblue]As[/color] [color=darkblue]Long[/color]
[color=darkblue]Dim[/color] Pic [color=darkblue]As[/color] Picture
Application.ScreenUpdating = [color=darkblue]False[/color]
strPath = "C:\Users\Domenic\Documents\Test\" [color=green]'change the path accordingly[/color]
[color=darkblue]If[/color] Right(strPath, 1) <> "\" [color=darkblue]Then[/color] strPath = strPath & "\"
LastRow = Cells(Rows.Count, "A").End(xlUp).Row
[color=darkblue]For[/color] i = 2 [color=darkblue]To[/color] LastRow
strFile = Cells(i, "A").Value & ".jpg"
[color=darkblue]If[/color] Dir(strPath & strFile) <> "" [color=darkblue]Then[/color]
[color=darkblue]Set[/color] Pic = ActiveSheet.Pictures.Insert(strPath & strFile)
[color=darkblue]With[/color] Pic
.Left = Cells(i, "B").Left
.Top = Cells(i, "B").Top
.Height = Cells(i, "B").Height
[color=darkblue]End[/color] [color=darkblue]With[/color]
[color=darkblue]Else[/color]
Cells(i, "B").Value = "N/A"
[color=darkblue]End[/color] [color=darkblue]If[/color]
[color=darkblue]Next[/color] i
Application.ScreenUpdating = [color=darkblue]True[/color]
[color=darkblue]End[/color] [color=darkblue]Sub[/color]
[/font]