DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
Personellerin resimleri eklediğim dosya içinde saklanmalıdır. Aksa halde kod çalışmaz.
Deneyebilirsiniz.
Private Sub Worksheet_Change(ByVal Target As Range)
If Intersect(Target, [b:b]) Is Nothing Then Exit Sub
ActiveSheet.DrawingObjects.Delete
Dim ResimYolu As Variant
Dim resim As Object
For Satır = 3 To 500
ResimYolu = Dir(ActiveWorkbook.Path & "\" & Range("b" & Satır) & ".jpg", vbNormal)
If ResimYolu <> "" Then
Set resim = ActiveSheet.Pictures.Insert(ActiveWorkbook.Path & "\" & ResimYolu)
With Range("a" & Satır)
resim.Top = .Top + 2
resim.Left = .Left + 2
resim.Height = .Height + 4
resim.Width = .Width - 4
End With
End If
Next Satır
End Sub