Hi Everyone,
I have been running a delete macro on a sheet we import where the first 10 rows, Column C:K have been static however I needed to change
the import sheet's structure. Unfortunately the rows I need to delete are no longer static so I'm wondering if I can "Delete by Criteria" instead?
It would need to delete anything in Column C that does not begin with "00" down to row 500. Below is the macro we used previously so the
top line(Range("C2:L10").Select) would need to be edited.
Thank you!
I have been running a delete macro on a sheet we import where the first 10 rows, Column C:K have been static however I needed to change
the import sheet's structure. Unfortunately the rows I need to delete are no longer static so I'm wondering if I can "Delete by Criteria" instead?
It would need to delete anything in Column C that does not begin with "00" down to row 500. Below is the macro we used previously so the
top line(Range("C2:L10").Select) would need to be edited.
Thank you!
Code:
Sub DeleteRows()
'
'
Range("C2:L10").Select
Selection.ClearContents
Columns("I:K").Select
Selection.Delete Shift:=xlToLeft
End Sub