Hey all,
I need to search for cells in certain columns that are blank and when found cut the entire row and paste it on another page with the empty cell(s) highlighted.
As a test initially I will do this with accounts of status 'closed'.
So the idea is to:
1. Find an account with status closed,c
2. Cut the entire row
3. Paste it on another sheet
4. Highlight it on the 2nd sheet
5. Go back to sheet 1
6. Delete row
7. Continue loop.
This is what I have so far but it does nothing:
I need to search for cells in certain columns that are blank and when found cut the entire row and paste it on another page with the empty cell(s) highlighted.
As a test initially I will do this with accounts of status 'closed'.
So the idea is to:
1. Find an account with status closed,c
2. Cut the entire row
3. Paste it on another sheet
4. Highlight it on the 2nd sheet
5. Go back to sheet 1
6. Delete row
7. Continue loop.
This is what I have so far but it does nothing:
Code:
[COLOR=SeaGreen]'Begin Closed Accounts Code[/COLOR]
Dim k As Long
For k = 1 To DataRange
If Cells(1 + k, 14) = "CLOSED" Then
Rows("k:k").Select
Selection.Cut
Sheets("Closed Accounts").Select
Rows("k:k").Select
ActiveSheet.Paste
Sheets("Ready for Submission").Select
Rows("k:k").Select
Selection.Delete Shift:=xlUp
End If
Next k