Automatic Macro Stop

Solved
ouistitlilie Posted messages 16 Status Member -  
ouistitlilie Posted messages 16 Status Member -
Hello,

I am working on VBA Excel. How can I make a macro stop automatically as soon as a message appears?
Indeed, I created a message ("Attention") that displays automatically only if a certain cell is empty, and I would like the macro to stop as soon as this message appears.
What should I write in VBA?
Help help!! Thanks

Configuration: Windows 2010/ Internet Explorer 7.0

3 answers

  1. ccm81 Posted messages 11033 Status Member 2 434
     
    Hello

    after the msgbox
    Exit Sub

    have a good continuation
    8