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
How can I run my PC in safe mode?
Error string in catch block?
Spell check two languages at the same time
Word 2002/xp: Error Message: "Run-time error '4248'; 'This command is not available because no document is open.'"
mcafee 4.5 issue cant see the agent logs
how to change the automatic update settings on server 2008
Shell command doesn't work on all computers
Print pdf, word, and excel email attachments from inbox folder
Store file in mysql using connector.net and blob field
Rpc over Https