📜  vba 删除空格 - VBA 代码示例

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

代码示例1
Dim s As String
s = "  abc  "
Debug.Print "|" & LTrim(s) & "|"         ' |abc  |
Debug.Print "|" & RTrim(s) & "|"         ' |  abc|
Debug.Print "|" & Trim(s) & "|"          ' |abc|