+ Reply to Thread
Results 1 to 6 of 6

Combo box remains empty due to missing rowsource in excel 2011

  1. #1
    Registered User
    Join Date
    03-23-2014
    Location
    Utrecht
    MS-Off Ver
    Excel 2011
    Posts
    8

    Combo box remains empty due to missing rowsource in excel 2011

    Hi there,

    I am struggling a bit with folowing situatie. I created a userform which has 3 combo boxes and I am having trouble with getting the lists in each of there separate boxes.

    The names of the lists are:
    - Typeopdracht
    - Statusopdracht
    - Verdienmodel

    The names of the combo boxes are:
    - cboTypeOpdracht
    - cboStatusOpdracht
    - cboVerdienmodel

    I found the following piece of code

    Private Sub UserForm_Initialize()

    With Worksheets("Projects")
    Revenue_Account.List() = .Range("RevCategory").Value
    End With
    End Sub

    and I rewrote it like this:

    Private Sub UserForm_Initialize()
    txtAangenomenOp.Value = Format(Date, "medium date")
    Me.txtAdres.SetFocus

    With Worksheet("blad9")
    cboTypeOpdracht.List() = .Range("Typeopdracht").Value
    cboStatusOpdracht.List() = .Range("Statusopdracht").Value
    cboVerdienmodel.List() = .Range("Verdienmodel").Value
    End With

    End Sub

    I don't know what I did wrong and besides that it now says that the sub or function isn't defined.

    What do I do?

  2. #2
    Forum Guru Izandol's Avatar
    Join Date
    03-29-2012
    Location
    *
    MS-Off Ver
    Excel 20(03|10|13)
    Posts
    2,581

    Re: Combo box remains empty due to missing rowsource in excel 2011

    It must be:
    Please Login or Register  to view this content.
    • Please remember to mark threads Solved with Thread Tools link at top of page.
    • Please use code tags when posting code: [code]Place your code here[/code]
    • Please read Forum Rules

  3. #3
    Registered User
    Join Date
    03-23-2014
    Location
    Utrecht
    MS-Off Ver
    Excel 2011
    Posts
    8

    Re: Combo box remains empty due to missing rowsource in excel 2011

    Opzet administratie (versie 1).xlsm

    I tried that but that's not it. I can't figure it out. Blad9 is the worksheet where the lists are btw. Maybe should have mentioned that earlier.

    I added the entire file in case i fail to explain myzelf properly.

  4. #4
    Forum Guru Izandol's Avatar
    Join Date
    03-29-2012
    Location
    *
    MS-Off Ver
    Excel 20(03|10|13)
    Posts
    2,581

    Re: Combo box remains empty due to missing rowsource in excel 2011

    Blad9 is code name. You must use:
    Please Login or Register  to view this content.
    or:
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    03-23-2014
    Location
    Utrecht
    MS-Off Ver
    Excel 2011
    Posts
    8

    Re: Combo box remains empty due to missing rowsource in excel 2011

    Awesome, it works! Thanks

  6. #6
    Forum Guru Izandol's Avatar
    Join Date
    03-29-2012
    Location
    *
    MS-Off Ver
    Excel 20(03|10|13)
    Posts
    2,581

    Re: Combo box remains empty due to missing rowsource in excel 2011

    You are welcome.

+ 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. Combo boxes disappear on Mac Excel 2011 Charts
    By KQBats in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 7
    Last Post: 06-07-2013, 05:55 AM
  2. [SOLVED] Rowsource in Combo box
    By gpnavin in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-28-2012, 08:20 AM
  3. VBA Coding of Date and Combo in Excel 2011
    By Alexph in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-09-2012, 11:09 AM
  4. using RowSource property but nothing appear in Combo box
    By froggy19 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-14-2007, 02:55 PM
  5. Combo Rowsource
    By scurvydog in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-24-2005, 02:03 PM

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