Dynamically set ListFillRange in Excel ComboBox

后端 未结 7 749
忘了有多久
忘了有多久 2020-12-01 22:40

I tried doing something like:

 cmbMyBox.ListFillRange = \"E2\"

But the combobox does not seem to populate.

相关标签:
7条回答
  • 2020-12-01 23:41

    I had a similar problem, i had an ActiveX Listbox in the worksheet. What worked for me is this:

    Sheets(1).OLEObjects("ListBox1").ListFillRange = "Sheet2!A1:C20"
    

    ActiveX OLEObjects are pretty straight forward.

    0 讨论(0)
提交回复
热议问题