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

示例

Const baseString As String = "Hello World"

Dim byteLength As Long

byteLength = LenB(baseString)
'byteLength = 22