简体   繁体   English

使用不在第一行中的单个单元格作为目标粘贴整个列

[英]Paste entire column using as target a single cell which is not in the first row

Is it really impossible to paste an entire column of data if the cells selected are not in the first row ? 如果所选单元格不在第一行中,是否真的不可能粘贴整列数据?

I always get the error below if I try it 如果尝试,我总是会收到以下错误

The information cannot be pasted because the Copy area and the paste area are not the same size and shape... 由于复制区域和粘贴区域的大小和形状不同,因此无法粘贴信息...

Any form of help is deeply appreciated. 任何形式的帮助都深表感谢。

It is actually impossible, either in VBA or directly. 实际上,无论是在VBA中还是在直接中,这都是不可能的。 And it would not make any sense. 而且这没有任何意义。

You could select an entire column less the last cell (last row), eg, A1:A[last row - 1] . 您可以选择整列减去最后一个单元格(最后一行),例如A1:A[last row - 1] Copy that range, and paste into, eg, B2 . 复制该范围,然后粘贴到例如B2 That would work. 那行得通。

As a generalization, you could select A1:A[last row - n] . 概括地说,可以选择A1:A[last row - n] Copy that range, and paste into B[n+1] . 复制该范围,然后粘贴到B[n+1]

This will probably perform the action you mean, and you could easily write code for that. 这可能会执行您想要的操作,并且您可以轻松地为此编写代码。

For copy choose a cell and End key then Shift + Down key to select a contigous column. 对于复制,请选择一个单元格和结束键,然后按Shift +向下键以选择一个连续列。

Then to paste choose a single cell. 然后粘贴选择一个单元格。

You can record this with Macro Recorder (Alt + T, M, R). 您可以使用Macro Recorder(Alt + T,M,R)进行记录。

暂无
暂无

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

相关问题 查找具有列最大值的单元格,复制整个行并粘贴到第2行 - Find cell with max value of column, copy entire row and paste in row 2 基于单列单元格提取整行 - extraction of entire row based on single column cell Excel:根据可能有空单元格的第一列将多行合并为单行 - Excel: combine multiple rows into single row based on first column which could have empty cell 将选定的单元格复制并粘贴到整行,直到上面的列为空 - Copy and Paste Selected Cell onto entire row until Column above is empty 选择超链接目标单元格的整行并向左滚动目标单元格 - Selecting the entire row of the hyperlinked target cell and scrolling left the target cell 将公式复制到可变目标单元格上的整个列 - Copy formula to entire column on variable target cell 列中的每一行并复制/粘贴会导致另一列中的第一个空闲单元格 - Each row in a column and copy/paste result in first free cell in another column VBA 如果单元格与 ID 列表匹配,则复制并粘贴整行,但如果列表包含空白单元格或带有“”的单元格,则不要粘贴 - VBA Copy and paste entire row if cell matches list of IDs, but do not paste if list contains blank cell or cell with "" 对于每个输入:是否可以从第一个FOR单元格开始在一个单列范围内运行并粘贴多个列? - For Each In: Is it possible to run through a single-column range and paste multiple columns, starting with that first FOR cell? 使用 Find 函数粘贴找到的整行 - Using Find functions to paste the found Entire Row
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM