Function TWOII(num As String, op As String) As Variant
On Error GoTo ERH:
Dim AL As Object: Set AL = CreateObject("System.Collections.ArrayList")
Dim res As Double
Dim ret As Variant
AL.Add Right(num, 1)
AL.Add Left(num, 1)
res = Evaluate(Join(Array(AL(0), AL(1)), op))
If (AL(1) = "0" Or AL(0) = "0") And op = "-" Then
If AL(1) = "0" Then
TWOII = 10 - AL(0)
Else
TWOII = 10 - AL(1)
End If
Exit Function
End If
If res > 9 Then
ret = Right(res, 1)
Else
ret = res
End If
If ret = 0 Then TWOII = vbNullString Else TWOII = CDbl(ret)
Exit Function
ERH:
If Err.Number = 13 Then
TWOII = vbNullString
Else
MsgBox Error$
End If
End Function