Microsoft
Software
Hardware
Network
Question : Excel - VBA text formatting
I'm trying to format the text of a TextBox into SSN format ###-##-####. My code looks like this .Text = Format(.Text, "###-##-####").
It works everytime until the leading character is a zero. If I enter 012345678 it will drop the leading zero. How do I prevent this?
Answer : Excel - VBA text formatting
Use this format string:
"000-00-0000"
When you use #, it gets dropped if it's not "needed".
Random Solutions
Draytek Vigor 2820 - x2 PPPOA ADSL connections
JavaScript Error in IE7 menu hover background does not work
Editable dropdown list in ASP.net 3.5 using C#
Clearing a submit form once submitted
Operation Must Use an Updateable Query
Restarting a WPF application to apply updates
Intel VT vs. AMD-V for Hyper-V
get latest file in the directory in unix
HP Driver Dowload problems
permissions changed after moving folder from one server to another