format number

G

geebee

hi,

i have the following in my VBA code:

range("A1").formula = "test " & TEXT(range("A11").value, "0.0%") & " eggs"

i am just trying to format the A11 value as a pecentage. how can i do this?

thanks in advance,
geebee
 
F

FSt1

hi,
try this instead....
Range("C1").Formula = "test " & _
Format(Range("A1"), "0.00%") & " eggs"

regards
FSt1
 

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


Top