IT编程技术

天行健,君子以自强不息;地势坤,君子以厚德载物;

Excel VBA第七节-字符串连接

2020-12-19 博主:Splendor EXCEL VBA基础

字符串连接
如果需要合并字符串,那么可以使用字符串连接符 &。

strA="hello” & "human"          '两个字符串连接
结果:hellohuman

strB="Hi" & strA                     '字符串连接变量
结果:Hihellohuman

strC= strA & strB                    '变量链接变量
结果:hellohumanHihellohuman

标签: EXCELVBA基础