![]() |
Can Listfillrange be used with a listbox or combobox on a form?
I have created a form with listboxes and comboboxes for use with a workbook
with 4 sheets - the last of which contains a series of lists which I would like to use in conjunction with the form. I am trying to add the lists to the relevant listbox and combobox using listfillrange - but without success. I am starting to think that listfillrange cannot be used in conjunction with forms and only works with boxes embedded in spreadsheets - but I am not convinced that could be correct. Can anyone provide guidance on the correct vba syntax for using listfillrange with a combobox in a form. The box name is cmbName and the named range in worksheet "Lists" is "Employees" |
Can Listfillrange be used with a listbox or combobox on a form?
For some unknown reason the properties on this is named differently on
forms. It's Rowsource: Private Sub UserForm_Initialize() Me.cmbName.RowSource = "=Employees!A1:A12" End Sub HTH. Best wishes Harald "Simon Skelton" <Simon wrote in message ... I have created a form with listboxes and comboboxes for use with a workbook with 4 sheets - the last of which contains a series of lists which I would like to use in conjunction with the form. I am trying to add the lists to the relevant listbox and combobox using listfillrange - but without success. I am starting to think that listfillrange cannot be used in conjunction with forms and only works with boxes embedded in spreadsheets - but I am not convinced that could be correct. Can anyone provide guidance on the correct vba syntax for using listfillrange with a combobox in a form. The box name is cmbName and the named range in worksheet "Lists" is "Employees" |
All times are GMT +1. The time now is 09:17 AM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com