+ Reply to Thread
Results 1 to 3 of 3

Excel vba - Getting loop to work [looping through ComboBoxes on a UserForm]

  1. #1
    Registered User
    Join Date
    09-22-2017
    Location
    Thailand
    MS-Off Ver
    2016
    Posts
    32

    Excel vba - Getting loop to work [looping through ComboBoxes on a UserForm]

    Hi I trying to get a loop to work but this is the first time I'm working with loops so need some help here
    I had a code before where I populate 40 combobox's this I try to get down to one code with a loop

    the code looks like this

    Please Login or Register  to view this content.


    My old code looked like this:


    Please Login or Register  to view this content.
    see the thing is I have 40 combobox and need to populate all with the same thing

    Hope somebody can help

  2. #2
    Valued Forum Contributor Maudibe's Avatar
    Join Date
    12-21-2016
    Location
    USA
    MS-Off Ver
    2010-2013
    Posts
    326

    Re: Excel vba - Getting loop to work [looping through ComboBoxes on a UserForm]

    Try this revision

    Please Login or Register  to view this content.
    From your code it looks like you are trying to add all the rows to all 40 comboboxes

  3. #3
    Registered User
    Join Date
    09-22-2017
    Location
    Thailand
    MS-Off Ver
    2016
    Posts
    32

    Re: Excel vba - Getting loop to work [looping through ComboBoxes on a UserForm]

    that one work like a charm

+ 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. [SOLVED] Populating userform textboxes basis of results from 2 userform comboboxes
    By rlh in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 04-11-2017, 10:26 AM
  2. [SOLVED] Excel Userform VBA: Help: Populate a textboxs from WS, based on 2 Comboboxes {more}l
    By SLJones171 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-28-2015, 09:40 AM
  3. SetFocus doesn't work properly on a Userform on ComboBoxes and TextBoxes
    By pimre in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 09-15-2013, 03:15 PM
  4. [SOLVED] Trouble Looping Through an Excel Range using a 2D 'For Loop' with VBA
    By Sarvazad in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-14-2013, 04:33 PM
  5. Function for looping through multiple columns to match selections from comboboxes?
    By hugo.hardy in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-09-2012, 04:53 AM
  6. Adding information from multiple ComboBoxes in a UserForm (Looping?)
    By H0NKEN in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-08-2012, 03:23 AM
  7. [SOLVED] Looping procedure calls userform; how to exit loop (via userform button)?
    By KR in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-27-2005, 08:05 AM

Tags for this Thread

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