ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   ActiveX Combo Box ListFillRange = Worksheet Named Range (https://www.excelbanter.com/excel-programming/391852-activex-combo-box-listfillrange-%3D-worksheet-named-range.html)

Philip J Smith

ActiveX Combo Box ListFillRange = Worksheet Named Range
 
Hi.

I want to populate the ListFillRange property with the contents of a
worksheet named range.

How do I attribute the named range as the ListFillRange?

Is it something like

Private Sub cboBand1_Change()

With combo.cboBand1
.ListFillRange="Worksheet Named Range"

Tom Ogilvy

ActiveX Combo Box ListFillRange = Worksheet Named Range
 
For a named range "List1"

This worked for me

Private Sub CommandButton1_Click()
ComboBox1.ListFillRange = "List1"
End Sub


as an example.

--
Regards,
Tom Ogilvy\


"Philip J Smith" wrote:

Hi.

I want to populate the ListFillRange property with the contents of a
worksheet named range.

How do I attribute the named range as the ListFillRange?

Is it something like

Private Sub cboBand1_Change()

With combo.cboBand1
.ListFillRange="Worksheet Named Range"
.
End With

End Sub


Regard

Phil



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

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