ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Sum a column (https://www.excelbanter.com/excel-programming/292457-re-sum-column.html)

newbie04

Sum a column
 
I know the logic to do this scenerio, except i dunno how the summin
part works. My code is shown below

Worksheets(a).cells(i,j)Select
ActiveCell.formula = "=SUM(R[-z]C:R[-1]C)"


It seems that the second line is wrong. Do someone know the reason?

Thk u

--
Message posted from http://www.ExcelForum.com



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

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