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
VMWare VirtualCenter Server Service (vCenter) not starting on startup
How to pass a scalar variable from one query to another
Parallels Server Networking
MULTIPLE CTE
sys.sysprocesses permissions
ForeFront TMG Intermittent Internet Connection
Limit number of chars in a multiple textarea form
Why Not able to read excel file in the Web application running on Windows7/Office2010?
‘Browse’ button component in jsf
Use of Excel Macro in MS Access 2000