XfortunaX
New Member
- Joined
- Aug 28, 2014
- Messages
- 28
Hi,
This sounds simple, but I am stuck. I am looking for a simple loop that will count the number of rows down then start the process of moving B2:E2 to C1:F1 then B4:E4 to C3:F3 and so on until there are not anymore rows.
In the end, it will use the following to delete all rows that do not have information in B.
Thank you,
JT
This sounds simple, but I am stuck. I am looking for a simple loop that will count the number of rows down then start the process of moving B2:E2 to C1:F1 then B4:E4 to C3:F3 and so on until there are not anymore rows.
In the end, it will use the following to delete all rows that do not have information in B.
Code:
Sub MoveCellsUp()
Dim lr As Long
lr = Range("A1").End(xlDown).Row
'Loop that will cut and paste the cells up and over a row then move down to the next set
'Delete all empty Rows
[B:B].SpecialCells(xlBlanks).EntireRow.Delete
End Sub
Thank you,
JT