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
SBS 2008: reverting from smart host/pop3 connector to exchange hosted email (DNS)?
How to archive IMAP mail in outlook?
Change value for a range of cells with VBA
Avast home edition
How to open .BMP file with Internet Explorer in Windows XP OS.
Having a problem json encoding a string with quotes
storing multiple image in one field
Limit Files on a Samba Share - Oppisite of veto files
can't find Printer Setup Utility in Mac OS X 10.5.8
Cisco ASA SIte to Site NAT Options.