使用MSGBOX没有暂停的应用程序 [英] Using MsgBox without pausing the application

查看:170
本文介绍了使用MSGBOX没有暂停的应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要显示一个消息给用户。当我做到这一点使用 MSGBOX ,程序停止,直到用户点击箱子走。我想知道是否有一种方法来打开 MSGBOX 而不暂停该计划。

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 to open the MsgBox without pausing the program.

推荐答案

听起来你不期望从MSGBOX任何用户输入。在这种情况下,根据你的应用程序中,状态条可能是一个适当的替代品。

Sounds like you're not expecting any user input from the MsgBox. In this case, depending on your application, the StatusBar may be an adequate substitute.

在Excel中,这是简单的:

In Excel this is easy:

Application.StatusBar = "Please be patient..."
Application.StatusBar = iDone & " of " & iTotal & " items done."

要清除状态栏完成时:

Application.StatusBar = False

在访问中,语法更一点点令人费解的:

In Access, the syntax is a tiny bit more convoluted:

Temp = SysCmd(acSysCmdSetStatus, "Hey, look at me!") ' Puts out your message
Temp = SysCmd(acSysCmdClearStatus) ' Clears StatusBar

这篇关于使用MSGBOX没有暂停的应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆