Yup - any attempt to finish a loop (either DO, While or Next) within an IF or a WITH block will give this error. WITHS and IFS should be either entirely INSIDE or entirely OUTSIDE any loop
Rgds, Geoff
"Three things are certain: Death, taxes and lost data. Guess which has occurred"
Please read FAQ222-2244 before you ask a question