|
-
Feb 22nd, 2005, 05:33 AM
#1
Thread Starter
Member
How do i do autosum in excel
How do i do autosum in excel i tried recording it but i got
Range("J22").Select
ActiveCell.FormulaR1C1 = "=SUM(R[-20]C:R[-1]C)"
But the range i have to add changes in size could anyone help???
-
Mar 19th, 2005, 06:13 PM
#2
Junior Member
Re: How do i do autosum in excel
Just dynamically build the range, i.e.
ActiveCell.FormulaR1C1 = "=SUM(R[-" & AComputedValue & "]C:R[-" & AnotherComptedValueOR1" & "]C)"
-
Mar 25th, 2005, 11:49 PM
#3
Fanatic Member
Re: How do i do autosum in excel
Could always use a more simple approach like this:
ActiveCell.Formula = "=SUM(C2:C6)"
-
Nov 16th, 2011, 01:32 PM
#4
Addicted Member
Re: How do i do autosum in excel
Suppose the range i had to add is A2:BA2 then wheather tha same formula is applicable.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|