I'm using excel vba, and I'm trying to do a loop until the ranges I'm dealing with go beyond some other pre-defined range.
For example, I'd set one range to range("A10000")
, and I'd like to loop on the a column until something passed that point.
Psudo-code of what I'd like is below.
dim myRange as range
dim maxRange as range
do while myRange < maxRange
' do something
' range.address = range.address next one '(range("a450") becomes range("a451"))
end while
EDIT: The reason I'm looking explicitly for a comparison to terminate the loop is because I can't assume a well-defined space that I can do a straight-forward loop over each cell.