Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
Sam Sam is offline
external usenet poster
 
Posts: 699
Default Please Help: display "%" sign after a number

Hi All,

How can I display a % sign after a number in a text box.

SO for eg, If I type in 12 i want it to display 12.0%
rite now If I type in 12, it gives me 1200.0%
Here is my code: Percent.Value = Format(Percent.Value, "##.0%")

Please Help
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,058
Default Please Help: display "%" sign after a number

Percent.Value = Percent.Value & "%"
--
Gary''s Student - gsnu200907


"sam" wrote:

Hi All,

How can I display a % sign after a number in a text box.

SO for eg, If I type in 12 i want it to display 12.0%
rite now If I type in 12, it gives me 1200.0%
Here is my code: Percent.Value = Format(Percent.Value, "##.0%")

Please Help

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 204
Default Please Help: display "%" sign after a number

Or
Percent.Value = Format(Percent.Value, "0.0") & "%"

M


"sam" wrote in message
...
Hi All,

How can I display a % sign after a number in a text box.

SO for eg, If I type in 12 i want it to display 12.0%
rite now If I type in 12, it gives me 1200.0%
Here is my code: Percent.Value = Format(Percent.Value, "##.0%")

Please Help


  #4   Report Post  
Posted to microsoft.public.excel.programming
Sam Sam is offline
external usenet poster
 
Posts: 699
Default Please Help: display "%" sign after a number

Thanks michelle, That was What I needed

"Michelle" wrote:

You could try
Percent.Value = Format(Percent.Value/100, "0.0%")

M

"sam" wrote in message
...
Hi All,

How can I display a % sign after a number in a text box.

SO for eg, If I type in 12 i want it to display 12.0%
rite now If I type in 12, it gives me 1200.0%
Here is my code: Percent.Value = Format(Percent.Value, "##.0%")

Please Help


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to divide a number with "less than" sign? ie: <1/1000 = <0.001 justinbeau Excel Worksheet Functions 3 March 4th 09 09:50 AM
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell Steve Kay Excel Discussion (Misc queries) 2 August 8th 08 01:54 AM
How to "sign" macro with "digital certificate"? Clueless in Seattle New Users to Excel 5 March 23rd 08 02:48 AM
How to display "+" sign Lamb Chop Excel Discussion (Misc queries) 1 August 7th 06 04:07 AM
How do display a "+" or "-" sign when hiding columns? DTI Tustin Setting up and Configuration of Excel 1 July 13th 06 01:21 PM


All times are GMT +1. The time now is 01:04 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"