+ Reply to Thread
Results 1 to 2 of 2

Combo Box with 2 colums, not displaying correctly

  1. #1
    Registered User
    Join Date
    11-29-2008
    Location
    Houston
    MS-Off Ver
    Office 2003, and 2007
    Posts
    77

    Combo Box with 2 colums, not displaying correctly

    I have the below code for an AxtiveX combo box, which appears on sheet12.
    Please Login or Register  to view this content.
    I'm having the following problems:
    1. The combo box displays the concatenated value correctly (IG-01 Argon) when I'm in the box, but not after the selection is made. It then only shows the "IG-01" value. What am I doing wrong?
    2. The MsgBox is trying to test for the value selected by the user. I've tried 0, 1, and -1 to get the message to fire but it's not. It should fire with "EITHER" the 1st, 2nd, OR 3rd "AddItem" but it's not firing on anyone of the selections. Any ideas?
    3. Can the ".AddItem..." and ".List", be written differently or on a single line?
    Last edited by DM2; 02-27-2015 at 04:05 PM.
    Regards,
    Dan
    Real world knowledge isn't dropped from a parachute in the sky but rather acquired in tiny increments from a variety of sources including panic and curiosity.

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,612

    Re: Combo Box with 2 colums, not displaying correctly

    'The "AddItem" and "List...) lines essentially concatenates....
    No. You are putting two separate strings in two different columns. Concatenate builds a single new string from multiple fragments.


    Please Login or Register  to view this content.
    Note that the "&"'s are concatenating the three strings into one. (the " " is also a one character string).
    Last edited by protonLeah; 02-27-2015 at 05:53 PM.
    Ben Van Johnson

+ 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. [SOLVED] UserForm not displaying correctly
    By dazbear in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-06-2015, 02:17 AM
  2. [SOLVED] date is not displaying correctly
    By Deb in forum Excel General
    Replies: 4
    Last Post: 02-08-2014, 07:28 PM
  3. UserForm not Displaying Correctly
    By Strugglin in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 02-01-2009, 09:02 AM
  4. [SOLVED] Userform not displaying correctly
    By Trefor in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-31-2006, 05:30 AM
  5. [SOLVED] Fonts not displaying correctly
    By Carolyn in forum Excel General
    Replies: 0
    Last Post: 06-20-2005, 10:05 AM

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