ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   List Fill Range Property (https://www.excelbanter.com/excel-programming/296658-list-fill-range-property.html)

jeff

List Fill Range Property
 
I have a few different comboBoxes where I can't seem to get the input range to stay. I have put the cell range in the ListFillRange Property but it doesn't always work. The combobox will be blank, but the LFR property will still say the range of cells I told it. This is driving me nuts!

Jeff

Bob Flanagan

List Fill Range Property
 
Jeff, most likely the userform has been loaded (shown) and then closed by
the user clicking on the X in the upper right corner. This does more than
just hide a form. It unloads list and combo boxes! Then, when you re-show
the form without unloading it, the lists are empty. The easy solution is to
use a statement like

Unload Userform1

before showing the form.

Bob Flanagan
Macro Systems
http://www.add-ins.com
Productivity add-ins and downloadable books on VB macros for Excel

"Jeff" wrote in message
...
I have a few different comboBoxes where I can't seem to get the input

range to stay. I have put the cell range in the ListFillRange Property but
it doesn't always work. The combobox will be blank, but the LFR property
will still say the range of cells I told it. This is driving me nuts!

Jeff





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

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