LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Listbox with Bound Columns


Dear Sir,
I have placed a listbox with row source property as three columns & 10
rows range.
I am trying to run Listbox_click event to collect data in selected row.
If I run following code it goes in continuous loop. Why?
Private sub Listbox1_click()
Dim lbl1 as variant
Dim lbl2 as variant
dim lbl3 as variant
Listbox1.boundcolumn = 1
lbl1 = listbox1.list(listbox1.listindex)

Listbox1.boundcolumn = 2
lbl2 = listbox1.list(listbox1.listindex)
end sub
How can I read data from all three colums of selected row in three
different variable.
Please guide

Thanks

Vijay


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
 
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
Transferring from both columns of a listbox to another Edward Excel Discussion (Misc queries) 1 February 22nd 07 02:34 AM
Multi-column ListBox. Multiple bound columns??? Joe Mathis Excel Programming 5 December 10th 03 01:32 AM
listbox.value not equal to listbox.list(listbox.listindex,0) ARB Excel Programming 0 October 22nd 03 12:46 AM
Format columns in a ListBox? Soniya Excel Programming 1 October 12th 03 11:40 AM
Multi-columns in a ListBox Tom Atkisson Excel Programming 1 October 5th 03 10:27 PM


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

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

About Us

"It's about Microsoft Excel"