B
Brian
I have this macro set to a button and would like to be able to loop it so I
only have to click it once to move all the rows with the term "Completed" in
the specified cell.
Sub Active()
Application.ScreenUpdating = False
Columns("H:H").Select
Cells.Find(What:="completed", After:=ActiveCell, LookIn:=xlFormulas, _
LookAt:=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, _
MatchCase:=False, SearchFormat:=False).Activate
Dim sourceRange As Range
Dim destrange As Range
Dim Lr As Long
Lr = LastRow(Sheets("Completed")) + 1
Set sourceRange = ActiveCell.EntireRow
Set destrange = Sheets("Completed").Rows(Lr)
sourceRange.Copy destrange
sourceRange.EntireRow.Delete
Sheets("Active").Select
Range("A2").Select
Application.ScreenUpdating = True
End Sub
Any help would be appreciated. Thank you
only have to click it once to move all the rows with the term "Completed" in
the specified cell.
Sub Active()
Application.ScreenUpdating = False
Columns("H:H").Select
Cells.Find(What:="completed", After:=ActiveCell, LookIn:=xlFormulas, _
LookAt:=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, _
MatchCase:=False, SearchFormat:=False).Activate
Dim sourceRange As Range
Dim destrange As Range
Dim Lr As Long
Lr = LastRow(Sheets("Completed")) + 1
Set sourceRange = ActiveCell.EntireRow
Set destrange = Sheets("Completed").Rows(Lr)
sourceRange.Copy destrange
sourceRange.EntireRow.Delete
Sheets("Active").Select
Range("A2").Select
Application.ScreenUpdating = True
End Sub
Any help would be appreciated. Thank you