Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
adam.ronalds
 
Posts: n/a
Default "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   Report Post  
Dave Peterson
 
Posts: n/a
Default

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
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
"Combo Box - getting control combo box to stick in place in worksh ajr Excel Discussion (Misc queries) 1 February 16th 05 02:05 AM
"Combo Box - getting control combo box to stick in place in worksh ajr Excel Discussion (Misc queries) 0 February 15th 05 07:45 PM
dynamic combo boxes tjb Excel Worksheet Functions 2 January 25th 05 07:33 PM
How do I autofill combo boxes with their destination cell? Defoes Right Boot Excel Worksheet Functions 3 January 10th 05 12:49 PM
Count unique alpha numeric "characters" in a common cell WIM4246 Excel Worksheet Functions 4 December 11th 04 02:27 AM


All times are GMT +1. The time now is 06:54 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"