VBA 使用Len函数确定字符串中的字符数

示例

Const baseString As String = "Hello World"

Dim charLength As Long

charLength = Len(baseString)
'charlength = 11