Format Phone number : Format « Data Type Functions « VBA / Excel / Access / Word






Format Phone number

 
Sub formatPhone()

   Debug.Print Format("1111111111", "(&&&)&&&-&&&&")

End Sub

 








Related examples in the same category

1.The Format function formats expressions in the style specified
2.Format$(Now, "Short Date")
3.Format$(Now, "DDDD")
4.Format$(Now, "DDD")
5.Format$(Now, "YYYY")
6.Format$(Now, "WW")
7.Format Postal code
8.Illustrate the Format method