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
better way to retreive a value for the last entry in a table
Changing Server Name with Exchange 2010 Installed
Cant install fonts on a Mac
How to watch netflix on google chrome on OS X?
Transaction in entity framework
Remove row if column B and C are empty
Save only sends e-mail with removed attachment again
kaspersky 2010 Anti Virus Outlook 2007 html image viewing
Exchange 2010 with DAG design question
Clear repeating values from an excel column with VBA