简体   繁体   English

Excel VBA 2013-在打开工作簿后重新获得顶部打开的用户窗体的简便方法

[英]Excel VBA 2013 - Easy way to bring back on top opened userform after workbook opened

I'm using Userform in Modal mode and I open a Workbook from VBA. 我在模态模式下使用Userform,然后从VBA打开工作簿。

When the workbook is opened, I'd like to bring back the calling Userform to the top, letting the workbook backward waiting for later updating. 打开工作簿后,我想将调用用户窗体重新带到顶部,让工作簿向后等待以后更新。

Is there any simple VBA statement to implement that ? 是否有任何简单的VBA语句来实现?

Thanks in advance for your input. 预先感谢您的输入。

Regards. 问候。

How about using the following statement: 如何使用以下语句:

UserForm1.Show 0  'vbModeless = 0

Or 要么

UserForm1.Show vbModal 'vbModal = 1

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM