K
ksnapp
hi,
This sub is supposed to look down column A and find the row number o
the last populated cell, then it divides that by 2 and round the numbe
up. Then it selects the cell in a with that row number. if that cel
is empty then it goes down one row at a time until it finds a cell tha
is not empty. It does all that just fine.
Now, I need it to cut from that cell(first non empty cell in column
below the 1/2 way point) to the last populated row from the first par
and coumn B, then paste all that stuff starting in C1
here is what I have
Sub row_counter()
Dim rw As Long
Dim h As Double
Dim n As Single
rw = Cells(Rows.Count, 1).End(xlUp).Row
h = rw / 2
n = Application.RoundUp(h, 0) + 1
Cells(n, 1).Select
Do Until ActiveCell <> Empty
ActiveCell.Offset(1, 0).Select
Loop
If cell <> Empty Then
Range(cell, Cells(rw, 2)).Select.Cut
End If
'Range("c1").Select.Paste
End Sub
help, pleas
This sub is supposed to look down column A and find the row number o
the last populated cell, then it divides that by 2 and round the numbe
up. Then it selects the cell in a with that row number. if that cel
is empty then it goes down one row at a time until it finds a cell tha
is not empty. It does all that just fine.
Now, I need it to cut from that cell(first non empty cell in column
below the 1/2 way point) to the last populated row from the first par
and coumn B, then paste all that stuff starting in C1
here is what I have
Sub row_counter()
Dim rw As Long
Dim h As Double
Dim n As Single
rw = Cells(Rows.Count, 1).End(xlUp).Row
h = rw / 2
n = Application.RoundUp(h, 0) + 1
Cells(n, 1).Select
Do Until ActiveCell <> Empty
ActiveCell.Offset(1, 0).Select
Loop
If cell <> Empty Then
Range(cell, Cells(rw, 2)).Select.Cut
End If
'Range("c1").Select.Paste
End Sub
help, pleas