Hi,
I want to be able to specify the statement directly after "Do Until" based on two possible conditions, i.e.....
If ActiveCell.Row > NewStatement Then
NewStatementLoop = "ActiveCell = """
Else
NewStatementLoop = "ActiveCell.Row = " & NewStatement
End If
Do Until NewStatementLoop
I keep getting Type Mismatch and general debug errors.
Can this be done?
Many thanks in advance.
I want to be able to specify the statement directly after "Do Until" based on two possible conditions, i.e.....
If ActiveCell.Row > NewStatement Then
NewStatementLoop = "ActiveCell = """
Else
NewStatementLoop = "ActiveCell.Row = " & NewStatement
End If
Do Until NewStatementLoop
I keep getting Type Mismatch and general debug errors.
Can this be done?
Many thanks in advance.