📜  vba 字符串 - VBA 代码示例

📅  最后修改于: 2022-03-11 14:51:56.564000             🧑  作者: Mango

代码示例1
Dim text1 As String
text1 = "Hello"
text1 = text1 & " World"
Debug.Print Left(text1, 3)             ' Hel
Debug.Print Right(text1, 4)         ' orld
Debug.Print Mid(text1, 2, 3)        ' ell
Debug.Print Len(text1)                ' 11    (size)
Debug.Print Instr(text1, "World")    ' 6        (position in text1)