+ Reply to Thread
Results 1 to 4 of 4

Userform in Excel for mac 2013: making dependent combo box issue

Hybrid View

  1. #1
    Registered User
    Join Date
    03-16-2012
    Location
    florida
    MS-Off Ver
    mac 2008
    Posts
    63

    Userform in Excel for mac 2013: making dependent combo box issue

    I am trying to make a list of 8 combo boxes that all have the same dropdown. the list next to it will all be dependent on waht you selected in the first lift.
    Here is the code I am using:

    Private Sub UserForm_Initialize()
    Dim MyArray As Variant
    MyArray = Range("categories")
    ComboBox1.List = MyArray
    ComboBox2.List = MyArray
    ComboBox3.List = MyArray
    Dim iCtr As Long
    End Sub
    
    Private Sub ComboBox1_Change()
    Me.ComboBox9 = ""
    
    Select Case Me.ComboBox1
        Case "Cat1"
            Me.ComboBox9.RowSource = "Cat1"
        Case "Cat2"
            Me.ComboBox9.RowSource = "Cat2"
        Case "Cat3"
            Me.ComboBox9.RowSource = "Cat3"
        Case "Cat4"
            Me.ComboBox9.RowSource = "Cat4"
        Case Else
            'do nothing
    End Select
    End Sub
    but its giving me an error. i get the same dropdown in the first row of boxes, but the second row does not give me a dropdown based on waht i selected, it just throws the debug error. what am i missing? thanks!

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,646

    Re: Userform in Excel for mac 2013: making dependent combo box issue

    Which line of code causes the error and what's the error message?
    If posting code please use code tags, see here.

  3. #3
    Registered User
    Join Date
    03-16-2012
    Location
    florida
    MS-Off Ver
    mac 2008
    Posts
    63

    Re: Userform in Excel for mac 2013: making dependent combo box issue

    If I select "Cat2" it debugs this line:

    Me.ComboBox9.RowSource = "Cat2"

    Error:

    Could not set the RowSource property. Invalid property value


    could this have anything to do with Office for Mac not recognizing it?
    Last edited by tsiguy96; 10-19-2015 at 12:00 PM.

  4. #4
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,646

    Re: Userform in Excel for mac 2013: making dependent combo box issue

    Have you checked the named ranges?

+ 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. Dependent (conditional) combo box without creating UserForm
    By fariz888 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-23-2014, 01:55 AM
  2. Excel 2013 - Lock Cells dependent on anothers contents
    By suzanneb in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-27-2014, 05:15 AM
  3. Userform with dependent combo/text boxes that then update table
    By Plane Fixer in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-04-2014, 08:23 AM
  4. Creating a userform with dependent combo boxes
    By Pooley1988 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-02-2013, 01:27 PM
  5. 3-tiered dependent combo boxes in userform using excel 2007
    By sahas in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-20-2013, 02:39 AM
  6. Making 3 Combo Boxes Dependent on Each Other
    By ACM2 in forum Excel General
    Replies: 14
    Last Post: 02-26-2012, 07:51 PM
  7. Excel VBA Combo Box Populating dependent on other combo box choices
    By ikabodred in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-15-2006, 11:20 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