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
sql server 2005 keyboard shortcuts
Black screen of death upon turning PC On
Javascript form validation problems
Passing a structure from VBA in Excel to a C DLL
ASP.Net C#, MS SQL
how do I reorganise a text file in powershell ?
Please suggest a suitable router
Citrix presentation Svr 4.5 - Data collector election
What do the lights mean on a standard network connector card?
Exchnage database restoration