VBA 使用CStr将数字类型转换为字符串
示例
Const zipCode As Long = 10012Dim zipCodeText As String'Convert the zipCode number to a string of digit characters zipCodeText = CStr(zipCode) 'zipCodeText = "10012"
Const zipCode As Long = 10012Dim zipCodeText As String'Convert the zipCode number to a string of digit characters zipCodeText = CStr(zipCode) 'zipCodeText = "10012"