+ Reply to Thread
Results 1 to 2 of 2

Loop through listindex in userform combobox

  1. #1
    Registered User
    Join Date
    07-01-2021
    Location
    Sweden
    MS-Off Ver
    2020
    Posts
    15

    Loop through listindex in userform combobox

    Hello, I have a userform filled with items in the combobox. I would like to loop through this lits of items, and for each item click the comand button.

    Possibly somethin like;

    for each combobox.listindex in combobox.listindex
    cmb_click
    next combobox.listindex



    Thank you in advance!

  2. #2
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    22,056

    Re: Loop through listindex in userform combobox

    Please Login or Register  to view this content.
    would work, but it would generally be better to have a routine that takes an argument, and call that routine passing each combobox value.
    Everyone who confuses correlation and causation ends up dead.

+ 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. Combobox automatically reposition ListIndex
    By jacknomiz in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 04-03-2017, 02:28 AM
  2. [SOLVED] Setting ComboBox value doesn't affect ListIndex
    By chengafni in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-09-2016, 04:56 AM
  3. [SOLVED] Combobox - jump to sheet based on selected listindex
    By Lukael in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-28-2015, 03:05 AM
  4. [SOLVED] ListIndex - combobox
    By Lukael in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 03-23-2014, 01:41 PM
  5. [SOLVED] loop through a spreadsheet looking for the value from a userform combobox
    By alexmech in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-01-2013, 01:13 AM
  6. ListIndex with ComboBox
    By Strife in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 11-09-2011, 02:46 PM
  7. Help with ComboBox ListIndex...
    By skonduru in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-19-2011, 12:58 PM

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