简体   繁体   English

复制并粘贴到新工作表

[英]Copy and paste to new sheet

I am trying to copy a row of data from one sheet to another having run some other macros, however I keep getting the error message that the paste area and copy area are not the same size and shape. 我试图将一行中的数据行复制到另一个运行了其他宏的表中,但是我不断收到错误消息,指出粘贴区域和复制区域的大小和形状不同。

I have tried using special cells paste method but it seems be missing the data from the last 9 columns. 我尝试使用特殊的单元格粘贴方法,但似乎丢失了最后9列中的数据。

Code: 码:

id.EntireRow.SpecialCells(xlCellTypeConstants).Copy
missingdata.Range("A" & Rows.Count).End(xlUp).Offset(1,1).PasteSpecial xlPasteValuesAndNumberFormats
Application.CutCopyMode = False

I need help changing the code so it copies the full row of data and pastes it under existing entries in missingdata. 我需要更改代码的帮助,因此它可以复制整行数据并将其粘贴到missingdata中的现有条目下。

It seems when it works when I choose to paste in Column A, however it does not allow me to paste from column B 当我选择粘贴到列A时似乎可行,但是它不允许我从列B粘贴

I normally use: 我通常使用:

Rows(index).Copy
Cells(1,Rows.Count+1).Select
ActiveSheet.Paste

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

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