I want to get cross sum of numbers rounding to one digit.
For example 789 = 24 but I want to get 6 from the first time.
Sub quersumme()
Dim a As Integer
Dim ln As Integer
Dim mystring As Integer
On Error Resume Next
mystring = Cells(1, 1).Value
a = 0
ln = Len(mystring)
For i = 1 To ln
a = a + Mid(mystring, i, 1)
Next i
Cells(1, 2) = a
End Sub