vba - Cell's formula not acting as a formula in excel? -


i have set cell's formula equal sum, yet cell displays equation, instead of result of equation... value not calculated, nor displayed. can copy contents of formula cell , paste 1 , cell display result, need initial 1 display it. here code:

set sumrangebegin = cells(sumrow, beginsumcolumn) set sumrangeend = cells(sumrow, endsumcolumn) set sumrangetotal = range(sumrangebegin, sumrangeend)  activecell.formula = "=sum(" & sumrangetotal.address & ")" 

the cell literally display =sum($aa$854: $av$854) (resulting had set variables initially... sumrow , sumcolumn's), won't display result. not sure why is.

try -most cause cell set text-

activecell.numberformat = "general" 

Comments

Popular posts from this blog

jOOQ update returning clause with Oracle -

java - Warning equals/hashCode on @Data annotation lombok with inheritance -

java - BasicPathUsageException: Cannot join to attribute of basic type -