Dim ResPayout As String
If Strings.Len(ResPayout) > 4 Then '1.000
ResPayout = Strings.Left(ResPayout, Strings.Len(ResPayout) - 3) & "." & Strings.Right(ResPayout, 3)
If Strings.Len(ResPayout) > 7 Then '1.000.000
ResPayout = Strings.Left(ResPayout, Strings.Len(ResPayout) - 7) & "." & Strings.Right(ResPayout, 7)
If Strings.Len(ResPayout) > 11 Then '1.000.000.000
ResPayout = Strings.Left(ResPayout, Strings.Len(ResPayout) - 11) & "." & Strings.Right(ResPayout, 11)
End If
End If
End If