Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

So I have around 16.000 cells to copy from one column to another one. If I copy paste it, only the first 1000 cells get pasted, the lower i get in the sheet, the less cells get pasted.

I cannot move & replace the column itself aswell since I m getting the error "This can`tbe done on a multiple range selection".

How can I copy all the cells at once? Thanks in advance

question from:https://stackoverflow.com/questions/66061380/excel-cannot-paste-all-copied-cells

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
298 views
Welcome To Ask or Share your Answers For Others

1 Answer

So i solved it over a looped vba:

'
' Macro3 Macro
'
' Keyboard Shortcut: Ctrl+ü
'

For i = 1 To 36430

    Range("L" & i).Select
    Selection.Copy
    Range("M" & i).Select
    Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
        :=False, Transpose:=False

Next i
   
End Sub```

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...