How would I loop through cells B1 to J1 and add them to a range if they meet a certain criteria. For example.
Dim Range1 As Range
For i = 1 to 9
If Range("A1").Offset(1,i) meets a certain criteria Then
**Add that cell to Range1**
End If
Next i
I’m not sure how to approach the part of adding certain cells to Range1.
Thanks for the help!
Something like this using
Unionto glue together your rangeFor eachloops are quicker than aFor i = 1 to xapproachYou may well be able to use SpecialCells to determine your new range instantly (e.g. any blanks, any errors, any formulae, etc)