Manish Sharma
Member
Hi Friends,
I have a VBA with ActiveX combobox which is giving error while opening the workbook. Error message is "Compiler error:Method or data member not found".
Any anyone you please tell me what is the mistake i am doing in the coding. Below is the coding for the three comboboxes
Thanks & Regards,
Manish
I have a VBA with ActiveX combobox which is giving error while opening the workbook. Error message is "Compiler error:Method or data member not found".
Any anyone you please tell me what is the mistake i am doing in the coding. Below is the coding for the three comboboxes
Code:
Private Sub ComboBox1_Change()
Application.ScreenUpdating = False
Application.EnableEvents = False
With ThisWorkbook.Sheets("Tool")
Me.ComboBox2.Value = ""
Me.ComboBox3.Value = ""
End With
Range("XFB5").Value = ""
Application.EnableEvents = False
End Sub
Private Sub ComboBox2_Change()
Application.ScreenUpdating = False
With ThisWorkbook.Sheets("Tool")
Me.ComboBox3.Value = ""
End With
Range("XFB5").Value = ""
End Sub
Private Sub ComboBox3_Change()
Application.ScreenUpdating = False
With ThisWorkbook.Sheets
If Sheet1.Range("XFA4").Value = "Greater than" Then
Sheet1.Txtbx5.Visible = True
Sheet1.Txtbx6.Visible = False
Sheet1.Txtbx7.Visible = False
Range("XFB4").Value = ""
Range("XFC4").Value = ""
ElseIf Sheet1.Range("XFA4").Value = "Less than" Then
Sheet1.Txtbx5.Visible = True
Sheet1.Txtbx6.Visible = False
Sheet1.Txtbx7.Visible = False
Range("XFB4").Value = ""
Range("XFC4").Value = ""
ElseIf Sheet1.Range("XFA4").Value = "Between" Then
Sheet1.Txtbx7.Visible = True
Sheet1.Txtbx5.Visible = True
Sheet1.Txtbx6.Visible = True
Range("XFB4").Value = ""
Range("XFC4").Value = ""
ElseIf Sheet1.Range("XFA4").Value = "" Then
Sheet1.Txtbx7.Visible = False
Sheet1.Txtbx5.Visible = False
Sheet1.Txtbx6.Visible = False
Range("XFB4").Value = ""
Range("XFC4").Value = ""
End If
End With
Range("XFB5").Value = ""
End Sub
Thanks & Regards,
Manish