The code works only if I click the run bottom. However, I would like to have the code run automatically and populate the combobox on its own. What am I missing?
Code:
Private Sub Userform_Activate()
With ComboBox1 'this loads the combo
.AddItem "N/A"
.AddItem "KCl"
.AddItem "NaCl"
.AddItem "CaCl2"
.Text = ComboBox1.List(0)
End With
End Sub
Private Sub ComboBox1_Change() 'this writes the selected value to the worksheet
Range("A3") = ComboBox1.Value
End Sub