+ Reply to Thread
Results 1 to 2 of 2

"combo box- numeric characters"

  1. #1
    adam.ronalds
    Guest

    "combo box- numeric characters"

    How do you get the final displayed number in a control combo box to have the
    same format as the list fill range numbers?

  2. #2
    Dave Peterson
    Guest

    Re: "combo box- numeric characters"

    Maybe a bit of code.

    Go into design mode (an icon on that control toolbox toolbar) and then double
    click on that combobox.

    Paste this into that window:

    Option Explicit
    Dim BlkProc As Boolean
    Private Sub ComboBox1_Change()
    If BlkProc = True Then Exit Sub
    With Me.ComboBox1
    BlkProc = True
    .Value = Format(.Value, "##0.00000")
    BlkProc = False
    End With
    End Sub

    (Change the format to what you want to see.)

    If you're new to macros, you may want to read David McRitchie's intro at:
    http://www.mvps.org/dmcritchie/excel/getstarted.htm

    adam.ronalds wrote:
    >
    > How do you get the final displayed number in a control combo box to have the
    > same format as the list fill range numbers?


    --

    Dave Peterson

+ 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