+ Reply to Thread
Results 1 to 6 of 6

Can’t populate (Initialize) multiple ComboBoxs on UserForn

  1. #1
    Forum Contributor
    Join Date
    01-18-2012
    Location
    nr Salisbury, UK
    MS-Off Ver
    Excel 2010
    Posts
    126

    Can’t populate (Initialize) multiple ComboBoxs on UserForn

    I have blundered my way to this point and have got something that vaguely works but at the end of the day it’s not working.
    Attached is the rough draft of where I’m at with it.

    What’s not happening it the ComboBoxes are not populating from the Ref sheetlist, and when I manually add values to them I can’t get it to enter them either

    Any suggestions as to where I have gone wrong would be greatly appreciated
    Attached Files Attached Files

  2. #2
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229

    Re: Can’t populate (Initialize) multiple ComboBoxs on UserForn

    This worked for me.
    Please Login or Register  to view this content.
    _
    ...How to Cross-post politely...
    ..Wrap code by selecting the code and clicking the # or read this. Thank you.

  3. #3
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MSO Home and Business 2024
    Posts
    7,540

    Re: Can’t populate (Initialize) multiple ComboBoxs on UserForn

    Thouroughly check all the names of the named ranges in your code you use to fill your Combo's against the names you have given them on your worksheet.
    Notice the differences in writing.
    After that all works fine.
    Avoid using Select, Selection and Activate in your code. Use With ... End With instead.
    You can show your appreciation for those that have helped you by clicking the * at the bottom left of any of their posts.

  4. #4
    Forum Contributor
    Join Date
    01-18-2012
    Location
    nr Salisbury, UK
    MS-Off Ver
    Excel 2010
    Posts
    126

    Re: Can’t populate (Initialize) multiple ComboBoxs on UserForn

    Hi Bakerman2, thanks for response.

    I did find a one typo, have checked range names but still not having any joy. Think it is just a case of me not understanding my own range referencing, could you be more specific as to where you identified the problem, as for the life of me I can’t find it.

    MikeRichardson
    Thanks Mike, not tried yours yet. Looking at points Bakerman2 made at the moment

  5. #5
    Forum Contributor
    Join Date
    01-18-2012
    Location
    nr Salisbury, UK
    MS-Off Ver
    Excel 2010
    Posts
    126

    Re: Can’t populate (Initialize) multiple ComboBoxs on UserForn

    What a !!!!!!!!!!!!!!!!!
    The whole problem all along had been that at I had put
    Please Login or Register  to view this content.
    (beining the actual Userform title) instead of simply
    Please Login or Register  to view this content.
    Changed that and every thing ok.

    Mark, tried yours out of appreciation. Admittedly harder for a Vba novice like me to follow but works just as well, I will file it for future reference

    Now have the other parts of the UserForm to complete

    Many thanks to you both
    Last edited by julhs; 01-30-2017 at 09:01 AM.

  6. #6
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MSO Home and Business 2024
    Posts
    7,540

    Re: Can’t populate (Initialize) multiple ComboBoxs on UserForn

    You're welcome and thanks for adding 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. [SOLVED] Excel userform won't properly populate on initialize
    By UpNDown in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-15-2014, 10:20 AM
  2. populate comboboxs on userform
    By cfinch100 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-22-2013, 02:57 PM
  3. named range to populate default textbox value in User form-initialize
    By coasterman in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-04-2012, 09:08 AM
  4. Initialize event to populate two Comboboxes?
    By fcb1900 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-21-2010, 05:01 PM
  5. populate the number when the form initialize
    By gkisacik in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-04-2010, 03:27 AM
  6. Initialize error with multiple Comboboxs & lists
    By JamesT1 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-02-2008, 01:53 AM
  7. Initialize Userform, Populate Listbox, Dynamic RowSource?
    By RShow in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-21-2005, 03:05 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