himurah182
New Member
- Joined
- Aug 4, 2022
- Messages
- 21
- Office Version
- 2019
- Platform
- Windows
Hey guys,
I need your help on this one.
What is the code to paste data in a specific range in the next empty collumn?
I tried this but it keeps pasting the data on the same range, which is on collumn E (look below). Also, how do I make it paste the new data always in collumn E, so older pastes move 1 collumn to the right. In other words, more recent pastes should always be visible in collumn E.
Sub Macro2()
Range("D5:D75").Select
Selection.Copy
Range("C5").Select
Range(Selection, Selection.End(xlToRight)).Select
Range("C5").Select
ActiveCell.Select
Range(Selection, Selection.End(xlToRight)).Select
ActiveCell.Offset(0, 2).Range("A1").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
End Sub
I need your help on this one.
What is the code to paste data in a specific range in the next empty collumn?
I tried this but it keeps pasting the data on the same range, which is on collumn E (look below). Also, how do I make it paste the new data always in collumn E, so older pastes move 1 collumn to the right. In other words, more recent pastes should always be visible in collumn E.
Sub Macro2()
Range("D5:D75").Select
Selection.Copy
Range("C5").Select
Range(Selection, Selection.End(xlToRight)).Select
Range("C5").Select
ActiveCell.Select
Range(Selection, Selection.End(xlToRight)).Select
ActiveCell.Offset(0, 2).Range("A1").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
End Sub