Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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 |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Sub ordinate()
Range("A1").Value = Application.WorksheetFunction.Sum(Range("B2:B4")) End Sub -- Gary''s Student - gsnu200760 |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Thanks Gary.
I will still need the variable ATLN40 = (the total of the sum). I will need the total for other calculations. I will refer to ATLN40. "Gary''s Student" wrote: Sub ordinate() Range("A1").Value = Application.WorksheetFunction.Sum(Range("B2:B4")) End Sub -- Gary''s Student - gsnu200760 |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Check your other thread.
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 -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
help with the macro or with the formula | Excel Worksheet Functions | |||
Macro Formula | Excel Discussion (Misc queries) | |||
formula or macro | Excel Worksheet Functions | |||
how to run a macro from a formula? | Excel Discussion (Misc queries) | |||
Help on Macro or Formula | Excel Discussion (Misc queries) |