Hi,
Noob here, I am having problems with combo box showing answers depending on previous combo box, here is my code...
It works when selecting from combo box6 to populate combobox3 but combobox5 dues not seem correct, I may be missing something easy but like I said I am a NOOB!!!
Any help would be appreciated
Noob here, I am having problems with combo box showing answers depending on previous combo box, here is my code...
It works when selecting from combo box6 to populate combobox3 but combobox5 dues not seem correct, I may be missing something easy but like I said I am a NOOB!!!
Any help would be appreciated
Code:
Private Sub UserForm_Initialize()
ComboBox2.Clear
Call ComboBox2.AddItem("1")
Call ComboBox2.AddItem("2")
Call ComboBox2.AddItem("3")
Call ComboBox2.AddItem("4")
ComboBox6.Clear
Call ComboBox6.AddItem("Mechanical Engineering")
Call ComboBox6.AddItem("Engineering")
Call ComboBox6.AddItem("Science")
Private Sub ComboBox6_Change()
Dim index As Integer
index = ComboBox6.ListIndex
ComboBox3.Clear
Select Case index
Case Is = 0
With ComboBox3
.AddItem "Mechanical Measurement and Inspection Techniques"
.AddItem "Applications Of Computer Numerical Control in Engineering"
.AddItem "Computer Aided Manufacturing"
.AddItem "Applications of Computer Numerical Control in Engineering & Computer Aided Manufacture"
End With
Case Is = 1
With ComboBox3
.AddItem "welding"
.AddItem "Other stuff"
.AddItem "Not sure"
End With
Case Is = 2
With ComboBox3
.AddItem "Physics"
.AddItem "Biology"
.AddItem "Chemistry"
End With
End Select
End Sub
Private Sub ComboBox3_Change()
Dim index As Integer
index = ComboBox3.ListIndex
ComboBox5.Clear
Select Case index
Case Is = 0
With ComboBox5
.AddItem "Linear Angular and Comparative Measurement"
.AddItem "Limits Fits and Guaging"
.AddItem "Statistical Process Control and Process Capability"
End With
Case Is = 1
With ComboBox5
.AddItem "CNC Principles and Machines"
.AddItem "Component Specifications and Operational Plans for Manufacture"
.AddItem "Part Programming and Manufacturing Components"
End With
Case Is = 2
With ComboBox5
.AddItem "Using CAM and Smart Systems in Engineering"
.AddItem "CAD Cam Interfacing"
.AddItem "Industrial Robots and Engineering Systems"
End With
Case Is = 3
With ComboBox5
.AddItem "Using CAD/CAM Software to Manufacture Components"
End With
Case Is = 4
With ComboBox5
.AddItem "force"
.AddItem "Organs"
.AddItem "Chemicals"
End With
End Select