vba 如何在VBA excel中使用最后一行概念粘贴数据
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/18255953/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-11 22:46:51 来源:igfitidea点击:
how to paste data using last row concept in VBA excel
提问by user2686394
i have data in A2 to D2 & in column E i have data (which will by chaining day to day - some day it will be 3000 or 4000 or 5000 so on).
我有数据在 A2 到 D2 & 在列 E 我有数据(这将通过每天链接 - 有一天它会是 3000 或 4000 或 5000 等等)。
so i have to find last row of E column & paste the data of A2 to D2 till last row.
所以我必须找到 E 列的最后一行并将 A2 的数据粘贴到 D2 直到最后一行。
回答by tigeravatar
One way:
单程:
Range("A2:D2").Copy Destination:=Range("A3:D" & Cells(Rows.Count, "E").End(xlUp).Row)