Hi
I've a code that searches down a column and picks out rows where values meeting certain criteria are anomalies. Each anomaly brings up a Message box that identifies the problem. The message Box has yes/no buttons to allow the user to either exit the sub and fix the issue or continue with the check of the column.
Running through the code "manually" using F8 the
is seen by the code, but clicking on "No" doesn't exit the sub.
If I separate the code after "Then" and put the Exit Sub on the next line down, the code throws up "Next with no For" when it reaches the line "Next cll".
If I move the
outside of the "If cll.Value" lines of code it gets ignored on a manual run-through.
What do I need to do to get the MsgBox "No" button to stop the code and the "Yes" button to let the code continue please?
Here's the code
Example spreadsheet with code is attached.
Many thanks
Frankie
Bookmarks