+ Reply to Thread
Results 1 to 3 of 3

Reference a ListIndex value in a macro

  1. #1
    Forum Expert nigelog's Avatar
    Join Date
    12-14-2007
    Location
    Cork, Ireland
    MS-Off Ver
    Office 365 Windows 10
    Posts
    2,286

    Reference a ListIndex value in a macro

    Im trying to reference the list index value of a listbox "DDlst_1" and the value is list index number 93, Ive tried various methods but cant nail it down

    Please Login or Register  to view this content.
    Also tried
    Please Login or Register  to view this content.
    any pointers appreciated
    Last edited by nigelog; 07-20-2017 at 09:00 AM.

  2. #2
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Reference a ListIndex value in a macro

    ListIndex returns the index of the selected item, not its value, therefore you must use
    Please Login or Register  to view this content.
    If the data is not in the bound column, you should specify the column you want (which is also a 0 based index) as well.
    Don
    Please remember to mark your thread 'Solved' when appropriate.

  3. #3
    Forum Expert nigelog's Avatar
    Join Date
    12-14-2007
    Location
    Cork, Ireland
    MS-Off Ver
    Office 365 Windows 10
    Posts
    2,286

    Re: Reference a ListIndex value in a macro

    Please Login or Register  to view this content.
    is spot on. Thanks xlnitwit

+ 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. removeitem and listindex
    By nparsons75 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 03-26-2014, 07:32 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. ListIndex with ComboBox
    By Strife in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 11-09-2011, 02:46 PM
  4. Help with ComboBox ListIndex...
    By skonduru in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-19-2011, 12:58 PM
  5. ListIndex problems...
    By LiamPotter in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-24-2009, 11:36 AM
  6. Cannot set Listindex property!
    By Gordon@work in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-06-2008, 05:46 PM
  7. ListBox and ListIndex
    By mtm4300 via OfficeKB.com in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-05-2006, 01:00 PM
  8. Listindex to range
    By jjacob in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-07-2005, 06:52 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