[英]excel vba userforms: user-defined type not defined
My Excel book contains a user form called myUserForm
. 我的Excel书籍包含一个名为
myUserForm
的用户表单。 I want to open it, fill it with data and programmatically press its buttons, but 我想打开它,用数据填充它并以编程方式按下它的按钮,但是
Sub myUserFormShow()
Dim muf As myUserForm
muf.Show
End Sub
prompts an error User-defined type not defined
. 提示错误
User-defined type not defined
。 How to fix it? 怎么解决? Thanks.
谢谢。
Use this code: 使用此代码:
Sub myUserFormShow()
myUserForm.Show
End Sub
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.