It’s pretty easy to cut and paste from a macro. Here are a few examples. The code works identical for copy, just replace the word cut with copy!
This one cuts and pastes a single cell, a1 over to b1:
Sub OneCell()
Range("A1").Select
Selection.Cut
Range("B1").Select
ActiveSheet.Paste
Application.CutCopyMode = False
End Sub
This one cuts and pastes an entire column, A over to B:
Sub OneColumn()
Range("A:A").Select
Selection.Cut
Range("B:B").Select
ActiveSheet.Paste
Application.CutCopyMode = False
End Sub
This one cuts and pastes an entire row, 1 over to 2:
Sub OneRow()
Range("1:1").Select
Selection.Cut
Range("2:2").Select
ActiveSheet.Paste
Application.CutCopyMode = False
End Sub
October 17th, 2008 at 8:46 am
How do you paste it into specific cells in another worksheet?