percentages in combo box

cpc

New Member
Joined
Mar 14, 2002
Messages
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
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
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.
 
Upvote 0

Forum statistics

Threads
1,214,525
Messages
6,120,051
Members
448,940
Latest member
mdusw

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top