+ Reply to Thread
Results 1 to 11 of 11

Multiple Range in UserForm ComboBox Error

  1. #1
    Valued Forum Contributor
    Join Date
    03-28-2014
    Location
    Kuala Lumpur, Malaysia
    MS-Off Ver
    Excel 2016
    Posts
    696

    Multiple Range in UserForm ComboBox Error

    Hi,

    Can pls help me? I am really confused

    this code working fine.
    Please Login or Register  to view this content.
    While breaking point below not working,
    Please Login or Register  to view this content.
    Last edited by Faridwahidi; 08-03-2014 at 11:52 PM.

  2. #2
    Forum Contributor lancer102rus's Avatar
    Join Date
    04-02-2014
    Location
    Ufa
    MS-Off Ver
    Excel 2010, 2013
    Posts
    252

    Re: Multiple Range in UserForm ComboBox Error

    because RowSource didn`t accept disjoint ranges

  3. #3
    Valued Forum Contributor
    Join Date
    03-28-2014
    Location
    Kuala Lumpur, Malaysia
    MS-Off Ver
    Excel 2016
    Posts
    696

    Re: Multiple Range in UserForm ComboBox Error

    Hi lancer102rus ,

    So, How to resolve it.

    I have been trying use .List & .Value but enitre of my code having problem, thus I tried .RowCourse & .Address , but there is a problem in multiple range selected.

  4. #4
    Forum Contributor lancer102rus's Avatar
    Join Date
    04-02-2014
    Location
    Ufa
    MS-Off Ver
    Excel 2010, 2013
    Posts
    252

    Re: Multiple Range in UserForm ComboBox Error

    is there a problem to use Range("I2:I4") in RowSource?

  5. #5
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Multiple Range in UserForm ComboBox Error

    Instead of referencing the rangeS, just add the datas it in the combo box via looping system


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  6. #6
    Valued Forum Contributor
    Join Date
    03-28-2014
    Location
    Kuala Lumpur, Malaysia
    MS-Off Ver
    Excel 2016
    Posts
    696

    Re: Multiple Range in UserForm ComboBox Error

    Hi sixthsense,

    I'm not familar with looping, I have tried this but got error,

    Please Login or Register  to view this content.
    I just want to select "I2" & "I4".

    On another cases, I need to select "I2" & "I7:I11"

  7. #7
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Multiple Range in UserForm ComboBox Error

    Please Login or Register  to view this content.
    Change this

    Set ws = ActiveSheet

    to your actual sheet reference

  8. #8
    Valued Forum Contributor
    Join Date
    03-28-2014
    Location
    Kuala Lumpur, Malaysia
    MS-Off Ver
    Excel 2016
    Posts
    696

    Re: Multiple Range in UserForm ComboBox Error

    Hi sixthsense,

    Thanks for looping technique.


    I am a bit confused, ws supposed to be referred to Worksheet("Data"), whereby the data is stored?

    Activesheet is the worksheet to populate the data? if I use ws.Range("I2", "I7:I11") as activeSheet there is no data found.

    With Me.ComboBox___ is refer to the box to be filled in or previous box as this is dependent drop downlist?

  9. #9
    Valued Forum Contributor
    Join Date
    03-28-2014
    Location
    Kuala Lumpur, Malaysia
    MS-Off Ver
    Excel 2016
    Posts
    696

    Re: Multiple Range in UserForm ComboBox Error

    I have resolved it by using

    Please Login or Register  to view this content.
    Anyway, thanks a lot

  10. #10
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Multiple Range in UserForm ComboBox Error

    Please Login or Register  to view this content.

  11. #11
    Valued Forum Contributor
    Join Date
    03-28-2014
    Location
    Kuala Lumpur, Malaysia
    MS-Off Ver
    Excel 2016
    Posts
    696

    Re: Multiple Range in UserForm ComboBox Error

    thank you so much

+ 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] Populate Userform ComboBox from range
    By Lasse Moe in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-05-2014, 12:47 PM
  2. VBA code error for userform dependent combobox
    By Jonno1 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-29-2014, 01:35 PM
  3. [SOLVED] cannot change userform combobox range error 457
    By cfinch100 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-08-2014, 05:22 PM
  4. Validating userform combobox selection with vba and getting an error
    By drew.j.harrison in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-22-2013, 11:27 AM
  5. Rowsource property error in combobox userform
    By asha3010 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-15-2010, 08: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