Hi,
I am trying to set comboBoxes on the userform. I have a clear button which sets the form to default (blank).
eg: Private Sub CmdClearButton_Click()
Call UserForm_Initialize
End Sub
It calls up the intialise command which I used to preset the form
eg: Private Sub UserForm_Initialize()
ComboBox1.Value = ""
ComboBox2.Value = ""
ComboBox3.Value = ""
ComboBox4.Value = ""
ComboBox5.Value = ""
ComboBox6.Value = ""
ComboBox7.Value = ""
ComboBox8.Value = ""
I have used the following command to fill the combo boxes
eg: Private Sub ComboBox1_Enter()
With UserForm1
With .ComboBox1
.AddItem "Format" 'these lines populate the listbox
.AddItem "Functuality"
.AddItem "Performance"
.AddItem "Capacity"
.AddItem "Availability"
.AddItem "Reliability"
.AddItem "Security"
.AddItem "Other"
End With
End With
End Sub
The problem I now have is that the information will not feed into my control source so I cannot save the information. Is the Enter command the wrong one to use? Maybe it is only entering the information, and there is no way of selecting it then.
I would appreciate any help with this!
Thanks, Scarlet
I am trying to set comboBoxes on the userform. I have a clear button which sets the form to default (blank).
eg: Private Sub CmdClearButton_Click()
Call UserForm_Initialize
End Sub
It calls up the intialise command which I used to preset the form
eg: Private Sub UserForm_Initialize()
ComboBox1.Value = ""
ComboBox2.Value = ""
ComboBox3.Value = ""
ComboBox4.Value = ""
ComboBox5.Value = ""
ComboBox6.Value = ""
ComboBox7.Value = ""
ComboBox8.Value = ""
I have used the following command to fill the combo boxes
eg: Private Sub ComboBox1_Enter()
With UserForm1
With .ComboBox1
.AddItem "Format" 'these lines populate the listbox
.AddItem "Functuality"
.AddItem "Performance"
.AddItem "Capacity"
.AddItem "Availability"
.AddItem "Reliability"
.AddItem "Security"
.AddItem "Other"
End With
End With
End Sub
The problem I now have is that the information will not feed into my control source so I cannot save the information. Is the Enter command the wrong one to use? Maybe it is only entering the information, and there is no way of selecting it then.
I would appreciate any help with this!
Thanks, Scarlet