vbaexcelmsgbox

How to keep msgbox always on top in vba?


While my macro runs, I do my other works. But then when msgbox pops out stays behind my other windows.

How can I see it on top, when it pops out?

Thank you.


Solution

  • add system modal parameter vbSystemModal:

    MsgBox "Your message!", vbSystemModal