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
SAS 9.1 - Excel Import
return multiple resultsets with TsqlQuery
Delete temporary internet files?
OS X Mail attachments - drag all
Windows 7 creates new profile on every login
SQL Compare
Caseware version 3.1. old Dos accounting software
Adding Roles to Roles In Custom Membership Provider - A Better Way ? C#, SQL, Oracle, ASP.NET
Windows XP ----> connect Server SBS 2003, how reset shared folder login and password to XP?
RequiredFieldValidator Cant validate