谢谢分享 |
自己做一个 窗体可以 窗体: Private Sub UserForm_Initialize() Application.OnTime Now + TimeValue("00:00:03"), "模块1.msg2" Application.OnTime Now + TimeValue("00:00:03"), "模块1.msg1" End Sub 模块1 Sub main() UserForm1.Show End Sub Sub Msg1() UserForm1.Hide End Sub Sub msg2() Sheet1.Range("A1").Value = "abc" End Sub |
a583091790 发表于 2022-11-21 11:38 咋个搞定的??? -=-=-=-=-=-=-=-=-=- |
路过………… |
路过………… |
xsg123456 发表于 2022-11-16 14:40 试了无效,运行的时候停在msgbox提示窗口,点了确定就是这个提示... |
路过………… |
xsg123456 发表于 2022-11-15 15:32 不知道,我是直接复制你写的代码运行的... |
Sub Msg1() If MsgBox("3秒后执行......", vbOKCancel, "提示") Then Application.OnTime Now + TimeValue("00:00:03"), "msg2" End If End Sub Function msg2() MsgBox "开始执行了", vbOKCancel, "新提示" End Function |
Powered by Discuz! X3.3
© 2001-2017 Comsenz Inc.