+ Reply to Thread
Results 1 to 6 of 6

Return the values from the 2nd Column in a Listbox

  1. #1
    Forum Contributor
    Join Date
    08-19-2009
    Location
    Netherlands, Amsterdam
    MS-Off Ver
    Excel 2010
    Posts
    585

    Return the values from the 2nd Column in a Listbox

    Hello All,

    The following code fills a range with values from the first column of ListBox1.
    I'd like however to fill the range with values from the 2nd column.
    All help is welcome!

    Please Login or Register  to view this content.

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,482

    Re: Return the values from the 2nd Column in a Listbox

    Probably,

    Please Login or Register  to view this content.

  3. #3
    Valued Forum Contributor Neil_'s Avatar
    Join Date
    04-19-2013
    Location
    Yorkshire
    MS-Off Ver
    Office 365 Enterprise E3 2013 / 2016
    Posts
    479

    Re: Return the values from the 2nd Column in a Listbox

    ListBox1.List(n - 1, 1). Column index begins at zero.
    Frob first, tweak later

  4. #4
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Return the values from the 2nd Column in a Listbox

    Just add 1 to the second part
    Please Login or Register  to view this content.
    < ----- Please click the little star * next to add reputation if my post helps you
    Visit Forum : From Here

  5. #5
    Forum Contributor
    Join Date
    08-19-2009
    Location
    Netherlands, Amsterdam
    MS-Off Ver
    Excel 2010
    Posts
    585

    Re: Return the values from the 2nd Column in a Listbox

    Thanks guys, that solved it!

  6. #6
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Return the values from the 2nd Column in a Listbox

    You're welcome. Thanks for the feedback and for the rep points

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Adding multiple column values using listbox
    By mayurpatil in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-27-2014, 12:33 PM
  2. [SOLVED] Search value enterred in TextBox2 in WS and return values in ListBox
    By djsouljah in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 12-07-2013, 02:44 PM
  3. [SOLVED] Listbox change event to return two values to different cells
    By andy booth in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-15-2013, 08:53 AM
  4. Code not to add duplicate values to my 2 column-listbox
    By Cijo in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-29-2012, 05:36 PM
  5. Search Values in a Column and List them in a ListBox
    By Julesdude in forum Excel Programming / VBA / Macros
    Replies: 23
    Last Post: 02-04-2010, 02:13 PM
  6. [SOLVED] returning values multi column listbox
    By GeorgeFD29 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-17-2005, 09:06 AM
  7. [SOLVED] How do I return the unique entries from a column to a listbox
    By Dave Mc in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-09-2005, 04:06 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1