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.
我需要使用 VB 宏将 People.xlsRange("A2: A100")和("B2:B100")Places.xls中的两列连接起来。我已经尝试记录一个宏并从包含连接公式`=CONCATENATE(A2,“”,B2)Range ("A2: A100")的附加列中复制和粘贴值。C3: C100但这看起来效果不太好,也不是很实用。有什么方法可以在宏本身中使用 VB 来完成吗?我一直在玩,但我没有运气
Range("A2: A100")
("B2:B100")
Range ("A2: A100")
C3: C100
尝试这个:
With Range("C1:C100") .Formula = "=Sheet2!A1&"" ""&Sheet3!B1" .Value = .Value End With