Using MsgBox without pausing the application

后端 未结 7 847
一向
一向 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条回答
  • 2020-12-16 14:38

    In the VB editor: Select Insert menu UserForm. In the Toolbox select TextBox: Drag a rectangle in the UserForm and type your text into it. Right click on the UserForm and select Properties. In the ShowModal property: Select False. In your VBA module enter UserForm1.Show where you want to turn it on and UserForm1.Hide where you want to turn it off. UserForm1 is mine, of course use the appropriate name for the form you created.

    0 讨论(0)
提交回复
热议问题