简体   繁体   English

在 VBA excel 上复制和粘贴

[英]Copy & paste on VBA excel

I couldnt find any code already posted to actually copy the entire row (like a form)我找不到任何已经发布的代码来实际复制整行(如表单)

在此处输入图片说明

then pastes at the bottom in the first empty row of the database.然后粘贴在数据库的第一个空行的底部。

can anyone please help?有人可以帮忙吗? Thanks谢谢

form A6:AY表格 A6:AY

Untested from mobile:未经手机测试:

Sub CopyPaster()

With ActiveSheet
     .Range("A6").EntireRow.Copy
     .Cells(Application.WorksheetFunction.CountA(.Range("A:A")+3,1).PasteSpecial xlPasteValues 'Plus 3 to account for the two blank cells in column A
End With

End sub 

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM