First I apologize if this has been posted before, but "Do" and "until" are not searchable words on this site.
Is it possible to do a "Do Until loop" with multiple criteria. for instance if I wanted to do a "Do Until" with the criteria of cell "A1" being empty or a variable (which is set inside the loop if criteria are met) = a specificed value, is this possible.
I know I could probably do a For-Next Loop with an If statement isnide, but i was just curious if the "Do until" loop offered the ability to insert multiple criteria. When i tried the following it immediately skipped the loop as if the Until criteria had been met, but it hadn't (almost acted like a syntax error except no pop-up, just skipped it.
Is it possible to do a "Do Until loop" with multiple criteria. for instance if I wanted to do a "Do Until" with the criteria of cell "A1" being empty or a variable (which is set inside the loop if criteria are met) = a specificed value, is this possible.
I know I could probably do a For-Next Loop with an If statement isnide, but i was just curious if the "Do until" loop offered the ability to insert multiple criteria. When i tried the following it immediately skipped the loop as if the Until criteria had been met, but it hadn't (almost acted like a syntax error except no pop-up, just skipped it.
Code:
Sheets("Input").Range("A:EZ").AutoFilter Field:=Check, Criteria1:="=RESP", Operator:=xlOr, Criteria2:="=Respiratory"
Do Until IsEmpty(ActiveCell) Or DataPresent = True
If ActiveCell.Value = "RESP" Then DataPresent = True
If ActiveCell.Value = "Respiratory" Then DataPresent = True
ActiveCell.Offset(1, 0).Select
Loop