userform中找不到方法或数据成员错误

时间:2017-07-14 10:45:17

标签: excel-vba vba excel

我收到错误

  

的方法或数据成员

在下面的代码

Private Sub Workbook_BeforeClose(Cancel As Boolean)
    UserForm1.CommandButton2.Visible = True
    UserForm1.CommandButton1.Visible = False
    UserForm1.TextBox1.Visible = False
    UserForm1.TextBox2.Visible = False
    UserForm1.Label1.Visible = False
    UserForm1.Label2.Visible = False
    UserForm1.TextBox4.Visible = True
    UserForm1.ComboBox1.Visible = True
    UserForm1.ComboBox2.Visible = True
    UserForm1.ComboBox3.Visible = True
    UserForm1.TextBox23.Visible = True
    UserForm1.Show
End Sub

0 个答案:

没有答案