Error Checking in Excel
Thanks Thanks:  0
Likes Likes:  0
Results 1 to 5 of 5

Thread: Combo Box

  1. #1
    New Member
    Join Date
    Apr 2002
    Posts
    2
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    I am trying to select text out of a combo box and populate another cell with that text. But when I do that all I get is a number, is there any way to get the text value to populate another cell?

  2. #2
    Board Regular
    Join Date
    Feb 2002
    Location
    Where the wild roses grow
    Posts
    285
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    So you want whatever you pick from a combobox to appear in a cell? Whatever cell you want it to go into, use this code:

    worksheets("sheetnamehere").range("cellreferencehere").value = combobox1

    That's assuming your combobox is called combobox1. You need to paste this into your combobox's change event. To get there go into VB editor and double click the combobox on your userform design

    Audiojoe

    [ This Message was edited by: Audiojoe on 2002-04-23 09:24 ]

  3. #3
    MrExcel MVP Aladin Akyurek's Avatar
    Join Date
    Feb 2002
    Location
    The Hague, NL
    Posts
    83,653
    Post Thanks / Like
    Mentioned
    33 Post(s)
    Tagged
    6 Thread(s)

    Default

    On 2002-04-23 09:19, David wrote:
    I am trying to select text out of a combo box and populate another cell with that text. But when I do that all I get is a number, is there any way to get the text value to populate another cell?
    In the target cell enter:

    =INDEX(input-range,cell-link)

    where input-range is the range the ComboBox uses and cell-link is is its Cell link.

  4. #4
    New Member
    Join Date
    Apr 2002
    Posts
    2
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    Thanks a bunch guys, it works.
    Cheers

  5. #5
    New Member
    Join Date
    Apr 2002
    Location
    Atlanta,Ga
    Posts
    7
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    Newbie needs someone to hold his hand...
    I am trying to create a combo box or? to enable the user to pick from a list. I have created a sheet with all data in seperate columns, but in the same workbook. I have tried both of the aforementioned methods, but, I just don't get it. Step-by-step anyone?

Some videos you may like

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •