Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Dear All,
I've seen various postings regarding this subject but have not been able to apply them to my application. What I need to do is append the @Sum function to the last row of an Excel sheet so it will sum the values in the columns. The spread sheet is filled dynamically by means of an export from a Lotus Notes database. Bob Phillips very kindly helped me do something similar for the last column by doing as follows: LastCol = Cells(2, Columns.Count).End(xlToLeft).Column then add a formula to sum column 2 to that column like so Cells(2, LastCol + 1).FormulaR1C1 = "=SUM(RC2:RC[-1])" How can I do the same for the last row? The above works great but I don't understand why. I can see from help that the "FormulaR1C1" property "returns or sets the formula for the object€¯ but I dont understand what the "RC" stands for in the formula above nor what the [-1] indicates. Any help would be gratefully received. My apologies for my ignorance! Jeremy |