DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
Function kendini_topla(sayi As Range) As Long
Dim tpl As Long, i As Byte
MsgBox Len(sayi)
For i = 1 To Len(sayi)
tpl = tpl + CInt(Mid(sayi, i, 1))
Next
kendini_topla = tpl
End Function
Private Sub Worksheet_Change(ByVal Target As Range)
On Error GoTo Son
If Intersect(Target, [A:A]) Is Nothing Then Exit Sub
If IsNumeric(Target.Value) = False Then Exit Sub
Dim i As Integer
Dim Toplam As Integer
Application.EnableEvents = False
For i = 1 To Len(Target.Value)
Toplam = Toplam + Mid(Target.Value, i, 1) + 0
Next i
Target.Value = Toplam
Application.EnableEvents = True
Son:
End Sub