Public Function toMoney(ByVal srcCurr As String, FormatM as Boolean) As String
if FormatM then
toMoney = Format(srcCurr, "##,###0")
else
toMoney = Format(srcCurr, "###0")
endif
End Function
Text1.Text = toMoney(Text1.Text, True) 'Devolver con millar
Text1.Text = toMoney(Text1.Text, False) 'Devolver sin millar