ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   named range (https://www.excelbanter.com/excel-programming/419990-named-range.html)

geebee

named range
 
hi,

i have the following to set the listfillrange of a combobox (forms
combobox). but it is not working:

Sheets("template").ComboBox1.Range ("num_dropdown")
any ideas?

thanks in advance,
geebee


FSt1

named range
 
hi
is the forms combo box on the sheet????
if so you wont be able to set it. you would need a sheet combo box from the
control tool box. then use this code.
Sub setlfr()
Dim r As Range
Set r = Sheets("sheet2").Range("Num_DropDown")
ComboBox1.ListFillRange = r.Address
End Sub
iis the list fill range on another sheet than the combobox?
if so use this
ComboBox1.ListFillRange = r.Address(External:=True)

post back if i have mis understood.
Regards
FSt1
"geebee" wrote:

hi,

i have the following to set the listfillrange of a combobox (forms
combobox). but it is not working:

Sheets("template").ComboBox1.Range ("num_dropdown")
any ideas?

thanks in advance,
geebee


FSt1

named range
 
oh
forgot to mention. the forms combo box doesn't have a list fill range. it
has row source.

regards
FSt1

"FSt1" wrote:

hi
is the forms combo box on the sheet????
if so you wont be able to set it. you would need a sheet combo box from the
control tool box. then use this code.
Sub setlfr()
Dim r As Range
Set r = Sheets("sheet2").Range("Num_DropDown")
ComboBox1.ListFillRange = r.Address
End Sub
iis the list fill range on another sheet than the combobox?
if so use this
ComboBox1.ListFillRange = r.Address(External:=True)

post back if i have mis understood.
Regards
FSt1
"geebee" wrote:

hi,

i have the following to set the listfillrange of a combobox (forms
combobox). but it is not working:

Sheets("template").ComboBox1.Range ("num_dropdown")
any ideas?

thanks in advance,
geebee



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

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