Automatic Macro Stop

Solved
ouistitlilie Posted messages 16 Status Membre -  
ouistitlilie Posted messages 16 Status Membre -
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 réponses

ccm81 Posted messages 11033 Status Membre 2 434
 
Hello

after the msgbox
Exit Sub

have a good continuation
8