Items in combo box have different formatting than souce cell

crocco

Board Regular
Joined
Jan 28, 2010
Messages
142
I am populating a combo box with a cell range of percentages.

When the items are shown in the dropdown list they are decimals rather than the percentage format of the source cell. ie one of the items in the source cell range is 3.75% but in the actual dropdown it shows as 0.0375.

Is there anyway to make it show 3.75% in the dropdown as well? I am using an ActiveX xombo box.

Thanks
 

Some videos you may like

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.

MickG

MrExcel MVP
Joined
Jan 9, 2008
Messages
14,841
Add this to the Combobox CHange event:-
Code:
Private Sub ComboBox1_Change()
ComboBox1.Value = Format(ComboBox1, "0.0%")
End Sub
 

Watch MrExcel Video

Forum statistics

Threads
1,122,655
Messages
5,597,384
Members
414,141
Latest member
Joey_T92

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
Top