Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
下面这段代码中“&”的含义和用法是什么?
Set Rng = Range("a1", Range("h" & Rows.Count).End(xlUp))
&是 VBA 中的字符串连接运算符。所以 if Rows.Count= 10 then"h" & Rows.Count会产生一个包含“h10”的字符串。
&
Rows.Count
"h" & Rows.Count