Excel Form Dropdown List Format Issues

rgarrity

New Member
Joined
Mar 3, 2017
Messages
20
I have an form (Userform1) with a dropdown list. I want the user to select an inflation rate; the dropdown lists is therefore populated with a named range in another sheet. The values in this named ranged are formatted as percentages (e.g., 1.0%, 1.1%, 1.2%, 1.3%, etc., with the range from 0.1% to 10.0%). When the user clicks on the dropdown arrow, the values are displayed properly, however, after the user makes a selection, the value is displayed as a decimal, not a percent. In other words, if the user selects "3.0%" the value is displayed as "0.03." I want the field to reflect 3.0%.

I am at a loss as to how to correct this. Any help would be appreciated.
[TABLE="width: 99"]
<tbody>[TR]
[TD="align: right"][/TD]
[/TR]
[TR]
[TD="align: right"][/TD]
[/TR]
[TR]
[TD="align: right"][/TD]
[/TR]
[TR]
[TD="align: right"][/TD]
[/TR]
</tbody><colgroup><col></colgroup>[/TABLE]
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
try
Code:
Private Sub ComboBox1_Change()
    ComboBox1.Value = Format(ComboBox1.Value, "0.0%")
End Sub
 
Upvote 0
Glad to help & thanks for the feedback
 
Upvote 0
Try
Code:
Private Sub ComboBox1_Change()
    ComboBox1.Value = Format(ComboBox1.Value, "$#,##0.00")
End Sub
 
Upvote 0

Forum statistics

Threads
1,223,164
Messages
6,170,444
Members
452,326
Latest member
johnshaji

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