oydemir
Altın Üye
- Katılım
- 22 Eylül 2007
- Mesajlar
- 278
- Excel Vers. ve Dili
- Türkçe 2016
- Altın Üyelik Bitiş Tarihi
- 07-12-2026
Formda bulduğum kod la resimleri getiriyorum fakat resim yolunu kod sayfasından değiştiriyorum
Bunun yerine userformda ki TextBox yazdığım adresten değişire bilimiyim.
Private Sub Worksheet_Change(ByVal Target As Range)
Application.ScreenUpdating = False
On Error Resume Next
Dim resim As Picture, alan As Range
'Set Alan = Range("b4:b6")
For Each resim In ActiveSheet.Pictures
If Not Intersect(resim.TopLeftCell, alan) Is Nothing Then
resim.Delete
End If
Next
Set alan = Nothing
Range("C6").Select
resimadi = LoadPicture("")
resimadi = Range("C1").Text & ".jpg"
ActiveSheet.Pictures.Insert("//11.11.11.11/bb/ss/gg/24-Kkk/" & resimadi).Select (değiştirdiğim satır)
Selection.ShapeRange.LockAspectRatio = msoFalse
Selection.ShapeRange.Height = 415 'yükseklik
Selection.ShapeRange.Width = 560 'genişlik
Selection.ShapeRange.Rotation = 0#
Range("C1").Select
Application.ScreenUpdating = True
End Sub
Bunun yerine userformda ki TextBox yazdığım adresten değişire bilimiyim.
Private Sub Worksheet_Change(ByVal Target As Range)
Application.ScreenUpdating = False
On Error Resume Next
Dim resim As Picture, alan As Range
'Set Alan = Range("b4:b6")
For Each resim In ActiveSheet.Pictures
If Not Intersect(resim.TopLeftCell, alan) Is Nothing Then
resim.Delete
End If
Next
Set alan = Nothing
Range("C6").Select
resimadi = LoadPicture("")
resimadi = Range("C1").Text & ".jpg"
ActiveSheet.Pictures.Insert("//11.11.11.11/bb/ss/gg/24-Kkk/" & resimadi).Select (değiştirdiğim satır)
Selection.ShapeRange.LockAspectRatio = msoFalse
Selection.ShapeRange.Height = 415 'yükseklik
Selection.ShapeRange.Width = 560 'genişlik
Selection.ShapeRange.Rotation = 0#
Range("C1").Select
Application.ScreenUpdating = True
End Sub