+ Reply to Thread
Results 1 to 5 of 5

How do I asign a range of cells to a combobox?

  1. #1
    Registered User
    Join Date
    05-27-2008
    Posts
    10

    How do I asign a range of cells to a combobox?

    I want to have a certain range of cells to be asigned to a combobox. How do I do this? I have been suggested to right click on the combobox, chooce format control and then "input range", the problem is that there is no such option for me.

    I also want to know how I can make the same range of cells appear in two (or more) different comboboxes without having the choice of one of them affect the other one. For instance if I have 3 cells in my range with A, B and C written in them, I want A, B and C to appear as choices in each combobox. If I then choose B in the first one B should not be selected in the other one. I should be able to select C in the other one if I want to.

    I hope you understand. My english is normally not as bad as this thread might indicate

  2. #2
    Forum Expert dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003, 2007 & 2016 365
    Posts
    4,867

    Smile

    Good afternoon Christoffer_Col

    Quote Originally Posted by Christoffer_Col
    I have been suggested to right click on the combobox, chooce format control and then "input range", the problem is that there is no such option for me.
    If this is the case then you probably used the wrong type of combobox - perhaps one from the Control Toolbox toolbar?

    Use the forms toolbar and find the combobox on there, then just follow the instructions you've been given.

    To set up two seperate comboboxes, just set up another one - they won't be linked at all.

    HTH

    DominicB
    Please familiarise yourself with the rules before posting. You can find them here.

  3. #3
    Registered User
    Join Date
    05-27-2008
    Posts
    10
    Thank you very much for your answer. I notice a difference between my combobox and the one in the sheet Im looking at (not created by me).

    In the combobox I add (forms toolbar) I can only asign cells from 1 columnm, in the one in the sheet there are cells from 2 columns. How can I do that?

    See the attached file for an example of what I wanna be able to do.

    Another thing, when i right click on that combobox and choose properties there is a row called "Linked cell", when I go to that cell I notice that my choice from the combobox is written in that cell. How do I do this?
    Attached Images Attached Images

  4. #4
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    That image looks like a combobox from the Controls toolbox which can have multiple columns.
    Hope that helps.

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

    Free DataBaseForm example

  5. #5
    Forum Expert dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003, 2007 & 2016 365
    Posts
    4,867

    Smile

    Hi Christoffer_Col

    Quote Originally Posted by Christoffer_Col
    when i right click on that combobox and choose properties there is a row called "Linked cell", when I go to that cell I notice that my choice from the combobox is written in that cell. How do I do this?
    From the format control dialog box, look for the option called cell link in the control tab.

    Quote Originally Posted by Christoffer_Col
    See the attached file for an example of what I wanna be able to do.
    As royUk has said, you will need to use the Control Toolbox toolbar to do this - this is more difficult to use than its Forms counterpart. If you want to go down this route, then once set up, change the ColumnCount property to 2, then you can use an extended range of two columns (specified in the ListFillRange property).

    HTH

    DominicB

+ 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