I have a file that needs to have rows cut and moved to another worksheet inside the same active workbook, if the required data in a specific column is there. Here's the code which correctly selects the rows:
Any help would be greatly appreciated!
What I cannot figure out how is how to tell the macro to cut these selected rows and move them to sheet 2 in the same workbook, and then delete the now blank rows in sheet 1.Sub SelectRowsCO()
Dim c As Range
Dim rngCO As Range
For Each c In Intersect(ActiveSheet.UsedRange, Columns("b"))
If c = "CO" Then
If rngCO Is Nothing Then Set rngCO = c.EntireRow
Set rngCO = Union(rngCO, c.EntireRow)
End If
Next c
rngCO.Select
End Sub
Any help would be greatly appreciated!