Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 64
Default 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
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default 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



  #3   Report Post  
Posted to microsoft.public.excel.programming
No Name
 
Posts: n/a
Default Problem with list

Cheers tom,

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

Thank you,

Robert Couchman
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
List Problem--Please help? Frank_Horbelt Excel Discussion (Misc queries) 1 December 12th 06 08:07 PM
List box problem TUNGANA KURMA RAJU Excel Discussion (Misc queries) 1 September 28th 06 06:34 AM
List box problem TUNGANA KURMA RAJU Excel Discussion (Misc queries) 1 September 1st 06 11:41 AM
list problem sedonovan Excel Discussion (Misc queries) 1 June 23rd 06 09:29 PM
LIst Problem Debby Bunce Excel Worksheet Functions 0 March 27th 06 07:49 PM


All times are GMT +1. The time now is 02:34 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"