I am admittedly ignorant & dumb to Macro's but I am trying to learn so please bear with me!
I have a project tracking spreadsheet with multiple sheets of information for varying stages of the tasks. On the main sheet I have a column that has multiple sets of completion (Complete, Hold, NIGO, In Progress, Waiting for Info). Currently I have a macro that will move & delete anything with "complete" in the column to another sheet. I would like to be able to run a macro that recognizes if a cell has anything in the column. With the help of google I have found a formula that somewhat works BUT when I run the macro, it moves & deletes the header row from my sheet, which I obviously don't want to happen.
How can I either -
1. create a macro that ignores the header row & will move & delete anything that is in column Q
or
2. create a macro that will move & delete multiple criteria for column Q
The macro I am currently running -
Sub move_rows_to_another_sheet()
For Each myCell In Selection.Columns(17).Cells
If myCell.Value = "Complete" Then
myCell.EntireRow.Copy Worksheets("Completed Cases").Range("A" & Rows.Count).End(3)(2)
myCell.EntireRow.Delete
End If
Next
End Sub
I have a project tracking spreadsheet with multiple sheets of information for varying stages of the tasks. On the main sheet I have a column that has multiple sets of completion (Complete, Hold, NIGO, In Progress, Waiting for Info). Currently I have a macro that will move & delete anything with "complete" in the column to another sheet. I would like to be able to run a macro that recognizes if a cell has anything in the column. With the help of google I have found a formula that somewhat works BUT when I run the macro, it moves & deletes the header row from my sheet, which I obviously don't want to happen.
How can I either -
1. create a macro that ignores the header row & will move & delete anything that is in column Q
or
2. create a macro that will move & delete multiple criteria for column Q
The macro I am currently running -
Sub move_rows_to_another_sheet()
For Each myCell In Selection.Columns(17).Cells
If myCell.Value = "Complete" Then
myCell.EntireRow.Copy Worksheets("Completed Cases").Range("A" & Rows.Count).End(3)(2)
myCell.EntireRow.Delete
End If
Next
End Sub