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
added shortcut to Public Desktop but some users not getting it - Win 2008 R2 Terminal Server
InDesign/MAC PrintBooklet to a PDF file on a mac
Globally Hide Mouse after Inactive without using constantly running Timer Interval
how to add swap partition to exsting swap in redhat linux
Block users from RSS feeds
Update Panel not loading DropDown
DST Patch not working?
visual studio 2005 express
asp.net, c#, drop down list error
Referencing merged cells using the "Indirect" function