format as %

  • Thread starter Thread starter saziz
  • Start date Start date
S

saziz

Hi All,
What would be the syntax for format(my formula,"percent")?
Help appreciated
Thanks
Sye
 
Is your formula in a cell?

If so,

<formulalocation>.NumberFormat = "0.00%"

replace <formulalocation> with whatever syntax you want to refer to the
cell (ActiveCell, Selection, Range("A1"), Cells(1,1) etc.)
 
Two different choises, suppose your number is 0.15:

1. Click on the cell, pull-down Format > Cell > Number > Percentage
cell will now show as 13.00%

2. If your number is 15, click on cell, pull-down Format > Cell > Number >
Custom

and enter General" %"
 
Thank you Tom, JakeyC & the Student of Gary for help.
It was in a VB code so (#.0%) helped.
Thanks once again
Syed
(I am not even a student sofar...I guess I can be a students'
student.) :
 

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

Similar Threads

last column..? 8
Excel Database help 1
Worksheet_Change 1
Userform/Module 3
Help 8
quick code needed 6
if < and > 9
VBA currency or percent format object 1

Back
Top