Question : How to set VBA UserForm Textbox format to ###,###,###.00?

Hi everyone,

  Is there a way for me to set the format of a the textbox into ###,###,###.00?  I've learned of the FORMAT function in vba and found a sample that sets a cell value from a worksheet into a textbox (e.g. TextBox1.Text = Format$(Value, "#,###")). But in my case, I'm accepting a user input from the same textbox that I want to have the said format. Any ideas? TIA

Answer : How to set VBA UserForm Textbox format to ###,###,###.00?


read this one:http://www.regular-expressions.info/characters.html#qe

"Escaping a single metacharacter with a backslash works in all regular expression flavors. Many flavors also support the \Q...\E escape sequence. All the characters between the \Q and the \E are interpreted as literal characters. E.g. \Q*\d+*\E matches the literal text *\d+*. The \E may be omitted at the end of the regex, so \Q*\d+* is the same as \Q*\d+*\E. "


regards.
Random Solutions  
 
programming4us programming4us