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 Reading data from a list box


Hi all,

I have a simple list box with two columns. The data for the columns are
read in from a worksheet within the workbook.

4421

When the user selects which steel grade they wish to use and then
clicks add; the data from the table is read to a spread sheet cell via
the following piece of code:

Private Sub subPutData()
Sheets("Sheet1").Select
Cells(8, 3).Value = lstGradeAndSMYS.Value
End Sub

This reads in the numerical value from the list box (i.e. SMYS, i.e.
the second column). What I would also like to be able to do is read in
the Steel Grade (i.e. the first column) and write that to a different
cell. I guess what I don't understand is why the above code chooses the
second column over the first column to write the data to Cell(8,3).

Any help would be greatly appreiated.

Best Regards,

Aaron


+-------------------------------------------------------------------+
|Filename: table.jpg |
|Download: http://www.excelforum.com/attachment.php?postid=4421 |
+-------------------------------------------------------------------+

--
Aaron1978
------------------------------------------------------------------------
Aaron1978's Profile: http://www.excelforum.com/member.php...o&userid=31201
View this thread: http://www.excelforum.com/showthread...hreadid=519362

 
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
Reading a list asianmike Excel Programming 4 February 6th 06 03:44 PM
Reading from comma seperated List Shashi Bhosale Excel Programming 2 May 29th 05 06:50 PM
Reading data from a filtered list Lucas Soler Excel Programming 1 April 25th 05 06:52 PM
Reading List Box Value Tom Ogilvy Excel Programming 2 September 25th 03 08:03 PM
Reading List Box Value Dave Peterson[_3_] Excel Programming 1 September 25th 03 01:43 PM


All times are GMT +1. The time now is 12:26 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"