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
Cannot access LAN on Cisco Valet M10 wireless router
NFS share on FreeNAS
Cannot Replicate FREEBUSY from Exchange 2003 to Exchange 2010 - EVENT 14029, 4003,
301 redirect htaccess issue
How to delete Clonezilla Images
web design vs dev
Office Word 2007
Using VLookup for Data Validation
Show all records when variable is null
OWA 2007: "The administrative limit for this request was exceeded"