Format Textbox as %

  • Thread starter Thread starter Todd Huttenstine
  • Start date Start date
T

Todd Huttenstine

I would like to format textbox1 as %.

If ComboBox1.Value = "Best Performing (%)" Or "Worst
Performing (%)" Then

format entry into textbox1 as % where the % auto attaches
on the end of the number.

For example, I chose the value "Best Performing (%)" from
combobox1. I then go to enter 10 in the textbox1. When I
type in 10 in textbox1, I would like for the % sign to
automatically show after the 10 so it look like 10%.


Thanx

todd
 
sStr = Application.substitute(textbox1.Text,"%","")
Textbox1.Text = sStr & "%"
 
Thanx

-----Original Message-----

sStr = Application.substitute(textbox1.Text,"%","")
Textbox1.Text = sStr & "%"

--
Regards,
Tom Ogilvy




.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top