+ Reply to Thread
Results 1 to 4 of 4

combo list change of items

Hybrid View

  1. #1
    Registered User
    Join Date
    01-14-2008
    Posts
    21

    combo list change of items

    hello
    hope you are fine.

    Please, I hope somebody could help me.

    I have a combo box where different items.

    (ex
    item(0) one,
    item(1) two,
    item(2) three

    this items are currently got from a row source. I create a name (Insert>Name>Create from Excel) and from there I get the values setting the row source to the name created

    I would like these texts to change according to a variable.(I'd like to call them in different languages).
    Ex, if this variable is true, instead than one,two,three I would like the items to be, ex

    item(0) red,
    item(1) green,
    item(2) blue.

    How can I set it by code ?
    Can I utilize some property of combo box or shall I use a different solution ?


    many thanks

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259

    Re: combo list change of items

    Hello MrReads,

    Do you have a sample workbook you can post?
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Registered User
    Join Date
    01-14-2008
    Posts
    21

    Re: combo list change of items

    Hello Mr Leith Ross
    Yes, sure.

    please find attached a sample that summarizes the case.

    In sheet one there is the list of the items of combo.
    I create a name by insert->create->name.
    this variable is called "one", and is assigned to the proprieties of the combo by the window.
    By clicking the command button, I assign to a variable, called variab, a true value.

    Utilizing this variable I would like to change the items of the combo to three different ones.

    My problem is that I don't know how to do it.
    Please, could you help me ?

    Many thankssample combo.xls

  4. #4
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259

    Re: combo list change of items

    Hello MrReds,

    The attached workbook is a slight modification of yours. I added a ListBox from which you can select the language you want the word you select in ComboBox translated into. Let me know if this is close to what you wanted.
    Attached Files Attached Files

+ 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