[英]Copy entire row of one worksheet to another based on column A of different worksheet
I'm hoping someone can help with a VBA script as I don't know where to start.我希望有人可以帮助使用 VBA 脚本,因为我不知道从哪里开始。
I have three worksheets.我有三张工作表。
WS1 has all of the information for all individual contact info WS1 拥有所有个人联系信息的所有信息
WS2 has column A with everyone's employee number, which is also in column A in WS1. WS2 的 A 列包含每个人的员工编号,这也在 WS1 的 A 列中。
empty空的
I would like for some code to go through every row in column A in WS2 and if it exists in Column A in WS1, then copy that entire row from WS1 to WS3.我希望一些代码遍历 WS2 中 A 列中的每一行,如果它存在于 WS1 中的 A 列中,则将该整行从 WS1 复制到 WS3。
thanks for any help on this!感谢您对此的任何帮助!
You don't need vba to accomplish this.你不需要 vba 来完成这个。 Use VLOOKUP formula instead.
请改用 VLOOKUP 公式。
Copy the values of Col. A from WS1 into WS3.将列 A 的值从 WS1 复制到 WS3。 Then enter VLOOKUP formulas for as many fields as is necessary.
然后根据需要为尽可能多的字段输入 VLOOKUP 公式。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.