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 IsNumeric(Target.Value) Then Target.Value = "-" & Target.Value
End Sub
Private Sub Worksheet_Change(ByVal Target As Range)
If Intersect(Target, [C:H,J1]) Is Nothing Then Exit Sub
If Target = [J1] Then
If ActiveSheet.Name <> [J1] Then ActiveSheet.Name = [J1]: Exit Sub
End If
Application.EnableEvents = False
If Not IsEmpty(Target.Value) And IsNumeric(Target.Value) Then Target.Value = "-" & (Target.Value)
Application.EnableEvents = True
End Sub
If Intersect(Target, [C:H,J1]) Is Nothing Then Exit Sub
[COLOR="Red"]If Cells.Count > 1 Then Exit Sub[/COLOR]
If Target = [J1] Then
Private Sub Worksheet_Change(ByVal Target As Range)
If Intersect(Target, [C:H,J1]) Is Nothing Then Exit Sub
If Target = [J1] Then
If ActiveSheet.Name <> [J1] Then ActiveSheet.Name = [J1]: Exit Sub
End If
Application.EnableEvents = False
If Not IsEmpty(Target.Value) And IsNumeric(Target.Value) Then Target.Value = "-" & (Target.Value)
Application.EnableEvents = True
End Sub
[COLOR="Red"]Sub Temizle()
Application.EnableEvents = False
Range("A3:H500,A1:E1").ClearContents
Application.EnableEvents = True
End Sub[/COLOR]
ayrıca şöyle bir şey mümkün mü?
veri olarak "10" yazınca "-10" oluyor... "-10" yazsam "10" yapabilir mi? "--10" olmasın...
Private Sub Worksheet_Change(ByVal Target As Range)
If Intersect(Target, [C:H,J1]) Is Nothing Then Exit Sub
If Selection.Count > 1 Then Exit Sub
If Target = [J1] Then
If ActiveSheet.Name <> [J1] Then ActiveSheet.Name = [J1]: Exit Sub
End If
Application.EnableEvents = False
If Target.Value < 0 Then
If Not IsEmpty(Target.Value) And IsNumeric(Target.Value) Then Target.Value = Replace(Target.Value, "-", "")
Application.EnableEvents = True
Exit Sub
End If
If Not IsEmpty(Target.Value) And IsNumeric(Target.Value) Then Target.Value = "-" & Target.Value
Application.EnableEvents = True
End Sub