I have a combo box that contains 200+ values from a named range and the user can choose to either choose any of these 200+ values or freely type in any other value into the combo box. This works fine.
My problem is that I am unable to fill in the same combo box with a value specified in a string variable in my VBA code. I want to do the following:
Sub FillInComboBox()
Dim strExample as String
strExample = "Random Text"
Worksheets("Sheet1").Shapes("ComboBox1").Value = strExample
End Sub
I get the "Run-time error '438: Object doesn't support this property or method". I have also tried a lot of variations of the code above and I have googled for two hours without success, so I now turn to you as my last hope to get this working.