Thread: Formula - Macro
View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.misc
orquidea orquidea is offline
external usenet poster
 
Posts: 132
Default Formula - Macro

Thanks for your answer.

I still need the variable ATLN40 = (the total of the sum) bacause I will
use the result of this variable for other calculation, so I will need to
refer to ATLN40.

Usted tambien vaya con Dios

"CLR" wrote:

Try this.........

Range("A1").Value = "=concatenate(SUM(B2:B4) & "" - 20 's"")"

Vaya con Dios,
Chuck, CABGx3



"orquidea" wrote:

Hi

How do I have to code the below procedure in a macro properly?

ATLN40 = "=Sum(B2:B4)"

I want to diplay the result in other cell. I have the following code:
Range("A1").Value= ATLN40 & " - 20's"
What I am getting now in Range A1 is =Sum(B2:B4) - 20's , not the
result of the sum.

Could anyone help me please?

Thanks,
Orquidea