ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   cboBox to read data from a spreadsheet Range (https://www.excelbanter.com/excel-programming/271956-re-cbobox-read-data-spreadsheet-range.html)

Tom Ogilvy

cboBox to read data from a spreadsheet Range
 
With Worksheets("Sheet1")
varr = .Range("A1:A12").Value
End with

Combobox1.List = varr


or do it directly

With Worksheets("Sheet1")
Combobox1.List = .Range("A1:A12").Value
End with

Regards,
Tom Ogilvy


"Igor" wrote in message
...
Hi,

I have a comboBox on the form, and i want it to read data
array from the spreadsheet.
Lets say i have months listed in cells A1:A12, how do i
make combo box read from that.

Thank you





All times are GMT +1. The time now is 11:50 PM.

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