Any one else bored today that can help with this simple issue. I need to be able to delete column 47 (AU) and its entire contents immediately after running this piece of code
Sub Delete_Rows()
Dim rng As Range, cell As Range, del As Range
Set rng = Intersect(Range("A1:AT150"), ActiveSheet.UsedRange)
For Each cell In rng
If (cell.Value) = "Grade-B" _
Then
If del Is Nothing Then
Set del = cell
Else: Set del = Union(del, cell)
End If
End If
Next cell
On Error Resume Next
del.EntireRow.Delete
End Sub
Maybe it could be added to this piece of code it that's any easier.
I know it's Christmas but if you're bored like me then i'd appreciate your help.
Regards
John
Bookmarks