Thread: format number
View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.programming
FSt1 FSt1 is offline
external usenet poster
 
Posts: 3,942
Default format number

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

regards
FSt1

"geebee" wrote:

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