Using MsgBox without pausing the application

后端 未结 7 947
一向
一向 2020-12-16 14:05

I need to display a message to the user. When I do this using MsgBox, the program stops until the user clicks the box away. I\'d like to know if there\'s a way

7条回答
  •  Happy的楠姐
    2020-12-16 14:33

    I believe you first need to evaluate if you really need a msgbox to pops-up and keep you code running.

    The msgbox functionality (as already stated) is modal and you cannot 'bypass' it. However, you can create a form (similar to the msgbox), set this form as 'not Modal' and call the code to show this form. The code workflow goes on. Tested and works in Excel.

    Update: My Access has lost a reference, I won't be able to test it now. Hope it works in Access as well.

    Rgds

提交回复
热议问题