kemal turan
Altın Üye
- Katılım
- 10 Haziran 2011
- Mesajlar
- 1,677
- Excel Vers. ve Dili
- Excel 2010 32 bit
DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Intersect(Target, Range("N14:N36")) Is Nothing Then Exit Sub
If Target.Cells.Count > 1 Then Exit Sub
Application.ScreenUpdating = False
Application.Calculation = xlCalculationManual
If Target <> "" Then
Range("AX14:BA36").ClearContents
Satır = 14
Set BUL = Sheets("SATIŞLAR").Range("A:A").Find(Target)
If Not BUL Is Nothing Then
ADRES = BUL.Address
Do
Cells(Satır, "AX") = BUL.Offset(0, 16)
Cells(Satır, "AY") = BUL.Offset(0, 10)
Cells(Satır, "AZ") = BUL.Offset(0, 1)
Cells(Satır, "BA") = BUL.Offset(0, 9)
Satır = Satır + 1
Set BUL = Sheets("SATIŞLAR").Range("A:A").FindNext(BUL)
Loop While Not BUL Is Nothing And BUL.Address <> ADRES
End If
End If
Set BUL = Nothing
Application.Calculation = xlCalculationAutomatic
Application.ScreenUpdating = True
End Sub
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Intersect(Target, Range("N14:N36")) Is Nothing Then Exit Sub
If Target.Cells.Count > 1 Then Exit Sub
Application.ScreenUpdating = False
Application.Calculation = xlCalculationManual
If Target <> "" Then
Range("AX14:BA36").ClearContents
Satır = 14
Set BUL = Sheets("SATIŞLAR").Range("A:A").Find(Target)
If Not BUL Is Nothing Then
Range("AW11") = BUL.Value
ADRES = BUL.Address
Do
If UCase(BUL.Offset(0, 10)) <> "SEVK OLDU" Then
Cells(Satır, "AX") = BUL.Offset(0, 16)
Cells(Satır, "AY") = BUL.Offset(0, 10)
Cells(Satır, "AZ") = BUL.Offset(0, 1)
Cells(Satır, "BA") = BUL.Offset(0, 9)
Satır = Satır + 1
End If
Set BUL = Sheets("SATIŞLAR").Range("A:A").FindNext(BUL)
Loop While Not BUL Is Nothing And BUL.Address <> ADRES
End If
End If
Set BUL = Nothing
Application.Calculation = xlCalculationAutomatic
Application.ScreenUpdating = True
End Sub