ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Very strange ListBox problem (https://www.excelbanter.com/excel-programming/348593-very-strange-listbox-problem.html)

Patrick Simonds

Very strange ListBox problem
 
I created a DialogBox which has a ListBox on it, when I click on any of the
names which appear in the ListBox and click OK the name is deposited into
the cell as it should be, but, as soon as I scroll down even by one to get a
name which does not appear in the List window (the ListBox displays the
first 20 rows of 120) and click on OK, Excel crashes.

Any ideas??

The list uses a RowSource of Employee_List! A4:B120



Patrick Simonds

Very strange ListBox problem
 
Turns out the problem was associated to the code I used for the OK Button.


"Patrick Simonds" wrote in message
...
I created a DialogBox which has a ListBox on it, when I click on any of the
names which appear in the ListBox and click OK the name is deposited into
the cell as it should be, but, as soon as I scroll down even by one to get
a name which does not appear in the List window (the ListBox displays the
first 20 rows of 120) and click on OK, Excel crashes.

Any ideas??

The list uses a RowSource of Employee_List! A4:B120





All times are GMT +1. The time now is 09:55 AM.

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