ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Problem with list (https://www.excelbanter.com/excel-programming/291275-problem-list.html)

Robert Couchman[_4_]

Problem with list
 
Hello all,

i have a listbox that when double clicked will open up a
record...

....BUT...

....if you have not selected a record and double click it
returns the error....

Listbox2.list(listbox2.listindex)

**apparently doesnt exist**

anyone know how to solve this problem?????

Thank you,

Robert Couchman

Tom Ogilvy

Problem with list
 
if Listbox2.Listindex < -1 then
Listbox2.list(listbox2.listindex)
End if

--
Regards,
Tom Ogilvy

"Robert Couchman" wrote in message
...
Hello all,

i have a listbox that when double clicked will open up a
record...

...BUT...

...if you have not selected a record and double click it
returns the error....

Listbox2.list(listbox2.listindex)

**apparently doesnt exist**

anyone know how to solve this problem?????

Thank you,

Robert Couchman




No Name

Problem with list
 
Cheers tom,

the code worked fine and now it is bug free :D

Thank you,

Robert Couchman


All times are GMT +1. The time now is 10:39 AM.

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