+ Reply to Thread
Results 1 to 3 of 3

Update RowSource location for ComboBox

  1. #1
    Registered User
    Join Date
    10-25-2011
    Location
    philly
    MS-Off Ver
    Excel 2003
    Posts
    16

    Update RowSource location for ComboBox

    Hello,

    I'm simply trying to update the RowSource property of 1 ComboBox based on the selection of another ComboBox

    The code:


    If ComboBox2.Value = "Dust Control" Then

    ComboBox1.RowSource = ThisWorkbook.Sheets("Catalog").Range("K1:K2")

    end if


    Returns an error. Why?

  2. #2
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: Update RowSource location for ComboBox

    If Cells K1 and K2 are merged, change range to K1
    Please consider:

    Be polite. Thank those who have helped you. Then Click on the star icon in the lower left part of the contributor's post and add Reputation. Cleaning up when you're done. If you are satisfied with the help you have received, then Please do Mark your thread [SOLVED] .

  3. #3
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Update RowSource location for ComboBox

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code. Posting code without them makes your code hard to read and difficult to be copied for testing. Highlight your code and click the # at the top of your post window. For more information about these and other tags, found here
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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