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
Virtual Memory
OCE 9400 plotter doesn't start
Export Access 2010 Report to CSV with Headers?
Sharepoint Survey: Clicked 'No' to 'Show user names while creating the survey! Is there a way to turn the feature back on to see the names again?
Outlook 2007 can not open network saved Archive file
how many version of SQL Server on one machine
Error string in catch block?
How do I add buttons on a PDF form to add/remove rows of data?
Blackberry Users can receive but not send
Access 2003/2007 background colour