ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   String array to a comboBox (https://www.excelbanter.com/excel-programming/408274-string-array-combobox.html)

NateBuckley

String array to a comboBox
 
Greetings,

I have a function which returns an array of strings, I wish to fill my
combobox with this array by doing something like the following

cmbBoxList.addItem manager.GetStringArray

This doesn't work. I can add them obviously by getting the array and looping
through the array adding each String one by one. Just wondering if there is a
better way that I may be missing.

Thanks in advance.

NateBuckley

String array to a comboBox
 
Ignore this thread, I was being stupid and forgot about ComboBoxs List
property/method.

Sorry about that.

"NateBuckley" wrote:

Greetings,

I have a function which returns an array of strings, I wish to fill my
combobox with this array by doing something like the following

cmbBoxList.addItem manager.GetStringArray

This doesn't work. I can add them obviously by getting the array and looping
through the array adding each String one by one. Just wondering if there is a
better way that I may be missing.

Thanks in advance.



All times are GMT +1. The time now is 11:27 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com