You are on page 1of 1

Dim myPict As Picture

Dim PictureLoc As String


If Target.Address = Range("A1").Address Then

ActiveSheet.Picture.delete
PictureLoc = "C:\Users\periyd\Desktop\AgeingSheet\" & Range("A1").Value &
".png"

With Range("B2")
Set myPict = Activiesheet.Pictures.Insert(PictureLoc)
myPict.Top = .Top
myPict.Top = .Left
myPict.Placement = xlMoveAndSize
End With
End If

You might also like