LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 184
Default Get Last Row

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

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"