Jacob45678
New Member
- Joined
- Sep 17, 2022
- Messages
- 10
- Office Version
- 2019
- Platform
- Windows
Hi I would like to reverse paste a column, but the column is going downwards when pasted.
Below is a code referred from other post but its not working
Sub RevPast()
Dim Rws As Long
Dim cols As Long
Dim Dest As Range
Dim SRng As Range
Dim i As Long
Dim r As Long
r = 1
Rws = Selection.Rows.Count
cols = Selection.Columns.Count
Set SRng = Selection
Set Dest = Application.InputBox("Select start point of paste range", Type:=8)
For i = Rws To 1 Step -1
SRng.Rows(i).Copy Dest(r)
r = r + 1
Next i
End Sub
Below is a code referred from other post but its not working
Sub RevPast()
Dim Rws As Long
Dim cols As Long
Dim Dest As Range
Dim SRng As Range
Dim i As Long
Dim r As Long
r = 1
Rws = Selection.Rows.Count
cols = Selection.Columns.Count
Set SRng = Selection
Set Dest = Application.InputBox("Select start point of paste range", Type:=8)
For i = Rws To 1 Step -1
SRng.Rows(i).Copy Dest(r)
r = r + 1
Next i
End Sub