H There, I have the following code that looks up a photo based on column A and places the photo in column L. The problem is when I email the file the photo's are not emailed. Is there any way to fix the photo's?
Thanks in advance.
Code:
Private Sub Worksheet_Change(ByVal Target As Range)
Dim myPict As Picture
Dim PictureLoc As String
Dim lr As Long, r As Long
lr = Cells(Rows.Count, "A").End(xlUp).Row
ActiveSheet.Pictures.Delete
For r = 2 To lr
PictureLoc = "C\photography\" & Range("A" & r).Value & ".jpg"
With Range("l" & r)
Set myPict = ActiveSheet.Pictures.AddPicture(PictureLoc)
.RowHeight = 144
myPict.Top = .Top
myPict.Left = .Left
myPict.Width = 110
myPict.Height = 140
myPict.Placement = xlMoveAndSize
End With
Next r
End Sub
Thanks in advance.