bulentkars
Altın Üye
- Katılım
- 5 Ağustos 2005
- Mesajlar
- 674
- Excel Vers. ve Dili
- 2003 TR
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, [C:C]) Is Nothing Then Exit Sub
i = ActiveCell.Row - 1
a = Cells(i, 3).Value
b = Cells(i, 2).Value
If a < b Then
MsgBox "Girdiğiniz değer Çok Fazla"
Else
End If
End Sub
Private Sub Worksheet_Change(ByVal Target As Range)
On Error GoTo Son
If Intersect(Target, [C:C]) Is Nothing Then Exit Sub
If Target.Offset(0, -1) <> "" And Target.Value < Target.Offset(0, -1) Then
MsgBox "Satış Değeri Alış Değerinden Büyük Olmalı"
Target.Offset(0, 0).Select
ElseIf Target.Offset(0, -1) = "" And Target.Value > "" Then
MsgBox "Alış Değerini Yazmadınız...."
Target.Offset(0, -1).Select
End If
Son:
End Sub
Private Sub Worksheet_Change(ByVal Target As Range)
If Intersect(Target, [C4:C100]) Is Nothing Then Exit Sub
i = ActiveCell.Row - 1
a = Cells(i, 3).Value
b = Cells(i, 2).Value
If a < b Then
Cells(i, 3).Select
Selection.ClearContents
MsgBox "Minimum Değer:" & b
Else
End If
End Sub