complex conditions with do until
===

Do Until Selection.Value = "" Or (Selection.Value = theyear And Selection.Offset(0, 1).Value = themonth)

Selection.Offset(1, 0).Select

Loop


in this line of statement, the code is unable to check the condition with the or part ie; it does not check the condition in the bracket. Is it expected?