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
simple VB file download example
HTC Touch 3G: How can I really upgrade WM6.1 to WM6.5 and/or porting to latest Android?
Crystal Reports Xi - Sorting a CrossTab Report by a Summary Field
Multiple Stored Procedures in a single transaction
get-wmiobject error - Powershell
Opera Version 10.60 page cache(!?) problem
Cisco 2950 Vlan for Voice
How do I charge for a job?
Symantec Endpoint Protection - SID 23615 HTTPS Tidserv Request 2 Detected
Utilizing array gleamed from GetRows method in Access VBA