Thread: Summing
View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.programming
JWolf JWolf is offline
external usenet poster
 
Posts: 136
Default Summing

Yep, it wouldn't. Do like Bob says and move the colon inside the quote
for the second V.

wrote:

It doesn't work. It doesn't like the colon. Thanks.
Any other thoughts?



-----Original Message-----
Two options:
Range("A" & m).formula = SUM("V" & m: "V" & (n-


1)) 'puts the formula

into the cell Am
Range("A" & m).Value = worksheetfunction.SUM("V" &


m: "V" & (n-1))

'puts the result of the sum into cell Am

wrote:


I want to set a column equal to the sum of some other
columns in a macro. It is not working. Can you


help.

This is what I have.

Range("A" & m).Value = SUM("V" & m: "V" & (n-1))

Thank you


.