如何通过打开文件打开用户界面 [英] How to open user interface with opening the file
本文介绍了如何通过打开文件打开用户界面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用:
Private Sub start_Click()
UserForm1.Show
End Sub
通过按下开始按钮打开我的用户界面.但是,当我刚打开我的 excel 文件时,我希望我的用户界面在一开始就自动打开.有谁知道我该怎么做?
To open my user interface by pushing the start button. But, I would like my user interface to be opened automatically in the very beginning when I have just opened my excel file. Does anyone know how I can do that?
推荐答案
在工作簿代码窗格中输入这个
In the Workbook code pane type this
Private Sub Workbook_Open()
UserForm1.Show
End Sub
这篇关于如何通过打开文件打开用户界面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文