![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: Mar 2002
Posts: 38
|
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 |
|
Banned
Join Date: Feb 2002
Posts: 1,582
|
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. |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|