ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   format number (https://www.excelbanter.com/excel-programming/404299-format-number.html)

geebee

format number
 
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



geebee

format number
 
never mind.i figured it out.

thanks


"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



FSt1

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




All times are GMT +1. The time now is 11:23 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com