Thanks Thanks:  0
Likes Likes:  0
Results 1 to 2 of 2

Thread: percentages in combo box

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

    Default

    Why is it that when the format for the range of cells in my combo box properties are percentages does the selection from the drop down list appear in the combo box as a decimal, rather than showing a percent sign? Is there a way to have the selection in the combo box show as a percent, with the percent sign?
    Help!

    [ This Message was edited by: cpc on 2002-03-16 21:27 ]

  2. #2
    Rest in Peace
    Join Date
    Feb 2002
    Posts
    1,582
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    Hi cpc

    The Combobox will pick up the real values of a cell and not it's formatting. Use this

    Private Sub ComboBox1_Change()
    If ComboBox1.ListIndex > -1 Then
    Combox1 = Format(ComboBox1, "0.00%")
    End If
    End Sub

    Just be aware that the value will now be Text and NOT numeric. But there many ways to still use the Text in other functions.


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
  •