+ Reply to Thread
Results 1 to 6 of 6

ComboBox Truncating Values

  1. #1
    Registered User
    Join Date
    03-07-2007
    Posts
    19

    ComboBox Truncating Values

    I have a combobox that has values like this
    00125
    00126
    01259
    12332

    They display correctly on the drop down but when I select one the value that displays within the combo box removes the leading zeros. Is there a way I can make the combobox text?

    Thank You

  2. #2
    Forum Expert
    Join Date
    01-12-2007
    Location
    New Jersey
    Posts
    2,127
    How are you loading the values into the combo box?

  3. #3
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    How are you getting the list into the combobox/
    Hope that helps.

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

    Free DataBaseForm example

  4. #4
    Registered User
    Join Date
    03-07-2007
    Posts
    19

    Using RowSource

    I'm setting the RowSource equal to a range. The data in the range is correct and it is text.

  5. #5
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    Are you sure that the Cells are actually formatted as Text or a Custom NumberFormat -"00000"?

    A combobox doesnot act like that with numbers formatted as Text.

  6. #6
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,834
    jerry8989

    Just format the cell before you transfer the value.
    e.g.
    Please Login or Register  to view this content.

+ 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