+ Reply to Thread
Results 1 to 10 of 10

Relative column number to listbox listindex

  1. #1
    Registered User
    Join Date
    04-24-2013
    Location
    Bristol
    MS-Off Ver
    Excel 2010
    Posts
    32

    Relative column number to listbox listindex

    Hi there

    Using a multiselect listbox, I want to be return a value in the column relative to the listindex

    i.e. I select the 4th and 6th items, a value is returned to D & F columns (I have 90+ items)

    Please Login or Register  to view this content.
    Any help appreciated

    Thanks
    Biffer

  2. #2
    Forum Expert MickG's Avatar
    Join Date
    11-23-2007
    Location
    Banbury,Oxfordshire
    Posts
    2,650

    Re: Relative column number to listbox listindex

    Try :-
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    04-24-2013
    Location
    Bristol
    MS-Off Ver
    Excel 2010
    Posts
    32

    Re: Relative column number to listbox listindex

    Hi Mick - thanks for this.

    However, it is some type of loop I'm after, as the number of possible selected items isn't fixed. Could be one or many.

    Any ideas

    Thanks

  4. #4
    Forum Expert MickG's Avatar
    Join Date
    11-23-2007
    Location
    Banbury,Oxfordshire
    Posts
    2,650

    Re: Relative column number to listbox listindex

    Could you send a file with an example of your data showing expected results, from selecting from your Listbox

  5. #5
    Registered User
    Join Date
    04-24-2013
    Location
    Bristol
    MS-Off Ver
    Excel 2010
    Posts
    32

    Re: Relative column number to listbox listindex

    Listbox Test.xlsm

    Here you go

    Many thanks

  6. #6
    Forum Expert MickG's Avatar
    Join Date
    11-23-2007
    Location
    Banbury,Oxfordshire
    Posts
    2,650

    Re: Relative column number to listbox listindex

    Try this:-
    Please Login or Register  to view this content.
    Regards Mick

  7. #7
    Registered User
    Join Date
    04-24-2013
    Location
    Bristol
    MS-Off Ver
    Excel 2010
    Posts
    32

    Re: Relative column number to listbox listindex

    Thanks Mick - this is great.

    One final thing is setting this to writing a new line for each selection(s). Rather than filling existing blanks

    Columns A will always be populated with a reference number

    Please Login or Register  to view this content.
    Last edited by Biffer; 06-16-2015 at 09:50 AM.

  8. #8
    Forum Expert MickG's Avatar
    Join Date
    11-23-2007
    Location
    Banbury,Oxfordshire
    Posts
    2,650

    Re: Relative column number to listbox listindex

    Try :-
    Please Login or Register  to view this content.
    Regards Mick

  9. #9
    Registered User
    Join Date
    04-24-2013
    Location
    Bristol
    MS-Off Ver
    Excel 2010
    Posts
    32

    Re: Relative column number to listbox listindex

    Fantastic - Mick thanks

  10. #10
    Forum Expert MickG's Avatar
    Join Date
    11-23-2007
    Location
    Banbury,Oxfordshire
    Posts
    2,650

    Re: Relative column number to listbox listindex

    You're welcome

+ 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. Listbox returning listindex and relative value
    By Biffer in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-01-2014, 10:43 AM
  2. [SOLVED] help getting listindex from listbox
    By edjohns in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 09-24-2012, 01:33 AM
  3. capture second column of named range from ListBox.ListIndex
    By carsto in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-27-2010, 03:42 PM
  4. ListBox and ListIndex
    By mtm4300 via OfficeKB.com in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-05-2006, 01:00 PM
  5. controling listindex in a listbox
    By michael sofianos in forum Excel General
    Replies: 0
    Last Post: 03-05-2005, 09: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