DEKORrehberi.com
Altın Üye
- Katılım
- 23 Mart 2009
- Mesajlar
- 71
- Excel Vers. ve Dili
- W10
DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
Private Sub Worksheet_Change(ByVal Target As Range)
If Intersect(Target, [E6]) Is Nothing Then Exit Sub ' Yalnız hangi hücrede çalışmasını istiyorsanız belirtmeniz gerek.E6 yı ona göre değiştirin.
Application.ScreenUpdating = False
On Error Resume Next
Dim resim As Picture, Alan As Range
For Each resim In ActiveSheet.Pictures
If Not Intersect(resim.TopLeftCell, Alan) Is Nothing Then
resim.Delete
End If
Next
T19 = "RESİM YOK"
Set Alan = Nothing
Range("T19").Select
resimadi = LoadPicture("")
resimadi = Range("B34").Text & ".jpg"
ActiveSheet.Pictures.Insert("C:\(Kabin_Modelleri\" & resimadi).Select
Selection.ShapeRange.LockAspectRatio = msoFalse
Selection.ShapeRange.Height = "190"
Selection.ShapeRange.Width = "140"
Selection.ShapeRange.Rotation = 0#
Application.ScreenUpdating = True
'Sayın muygun
End Sub
Private Sub Worksheet_Change(ByVal Target As Range)
If Intersect(Target, [b34]) Is Nothing Then Exit Sub
Application.ScreenUpdating = False
On Error Resume Next
Dim resim As Picture, Alan As Range
For Each resim In ActiveSheet.Pictures
If Not Intersect(resim.TopLeftCell, Alan) Is Nothing Then
resim.Delete
End If
Next
T19 = "RESİM YOK"
Set Alan = Nothing
Range("T19").Select
resimadi = LoadPicture("")
resimadi = Range("B34").Text & ".jpg"
ActiveSheet.Pictures.Insert(ThisWorkbook.Path & "\Kabin_Modelleri\" & resimadi).Select
Selection.ShapeRange.LockAspectRatio = msoFalse
Selection.ShapeRange.Height = "190" 'yükseklik
Selection.ShapeRange.Width = "140" 'genişlik
Selection.ShapeRange.Rotation = 0#
' Selection.ShapeRange.Offset = -100#
Range("B36").Select 'BURAYA GİTMESİNİ İSTEDİĞİNİZ ADRESİ YAZIN
Application.ScreenUpdating = True
'Sayın muygun
End Sub