I'm having some trouble here and I'm not sure exactly what's going on. I've got the below code;
Set wks = Worksheets.Add
wks.Range("A1").ListNames
Range("A:A").Cells.SpecialCells(xlCellTypeConstants).Name = "GroupList1"
For Each a In Range("GroupList1")
Range(a).Select
If Selection.Find("NOTE:", , Excel.xlValues) Is Nothing Then
Range(a).EntireRow.Delete
End If
Next a
I keep getting an error "Method 'Range' of object'_Global' failed" when trying to select each Range.
Range(a).Select
The weird part is I have the same code later on and it works just fine. Any help would be appreciated. Thanks!