Userform textbox number formats

P

PhilM

Hi

I need to set the number format of a textbox (in a userform) to show a
percentage. How do go about this?
 
H

Harald Staff

Hi

Dim D As Double
D = 418 / 1300
TextBox1.Text = Format$(D, "0.0%")

HTH. Best wishes Harald
 
Top