Conditional Macro Problem

  • Thread starter Thread starter Kerry
  • Start date Start date
K

Kerry

I have a simple macro that isn't working properly

if A then msgbox
if A and B then goto next record
if C then goto next record

The problem is - if A and B also apply to the next record, it skips it and
doesn't stop until it finds a record that doesn't meet that condition. Is
there a way to fix this to make it stop at the next record even if A and B
are true?
 
Insert a row below your 'if A and B then goto next record' and in the
condition put '...' without quotes. Use Stop Macro as action.

If condition is true the macro will stop and not perform the next step.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top