打开文件时,Excel无法识别组合框

时间:2015-07-23 11:38:14

标签: excel vba

我有9个文本框,2个命令按钮和4个组合框,但Excel在保存后打开文件时选择不识别其中一个组合框(本例中为ComboBox4)。它不是代码太复杂了。打开文件时出现以下错误:

“第3行或第5行的运行时错误'424':对象必需”,具体取决于保存文件时ComboBox1的值。

Private Sub ComboBox1_Change()

If ComboBox1.Value = "Single Fitment" Then

        ComboBox4.Enabled = False

    Else

        ComboBox4.Enabled = True

End If
End Sub

谢谢。

0 个答案:

没有答案