I'm trying to do something (I think) easy, but I can't find it.
At the start of my Excel file I add the string values from the array (which is created meanwhile because you can't define a const string array):
Private Sub Workbook_Open()
CompleteAddList
End Sub
/
Public Function CompleteAddList(
For Each a In ArrAddList
With ActiveWorkbook.Sheets("Sheet 1").Shapes("AddList1").ControlFormat
.List = a
End With
MsgBox (a)
Next a
End Function
/
Public Function ArrAddList()
ArrAddList = Array("Text1", "Text2")
End Function
I see the message boxes, but the data is not stored in the combobox (it's still empty). Is this because it's in a public function ? Or is it just not correct the way I wrote it?