thequickness
New Member
- Joined
- Jul 17, 2019
- Messages
- 10
I have a Column(H) that is 2000+ rows large, and will increase as I add more data. In this Columns there is only 4 unique values. Ex: H2:H600 = AAA, H601:H1200 = BBB, H1201:H1800 = CCC, and so on....
How do I get the range returned to a variable of all of the AAA, and BBB, and CCC.
How do I get the range returned to a variable of all of the AAA, and BBB, and CCC.
Code:
dim searchRange as range
searchRange = rngCheck
function rngCheck() as Range
dim lastRow = activesheet.range("H10000").End(xlUp).row
for i = 2 to lastRow
....get my AAA range here...
next i
end function