Formatting text box numbers (1 Viewer)

PaulSpell

Registered User.
Local time
Today, 13:53
Joined
Apr 19, 2002
Messages
201
I need help formatting text box numbers!

Does anyone know how to format numbers in a text box to show in millions? For example 3,444,222 would show as 3.4.
 
Last edited:

scottfarcus

Registered User.
Local time
Today, 13:53
Joined
Oct 15, 2001
Messages
182
Why not divide the given number by 1 million and then add some text to it.

If txtNumber holds 2500000. The following code will return 2.5 Million in a text box called txtMillions.

txtMillions = txtNumber / 1000000 & " Million"
 

Users who are viewing this thread

Top Bottom