Mac Office 365
Hi, this is a question for understanding.
What I want and what works is this:
Range("B1").Select
Range("B1").Formula = "=SUM(" & Range("B2", Range("B2").End(xlDown)).Address & ")"
What I started with and works is this:
Range("B1").Select
ActiveCell.FormulaR1C1 = "=SUMIF(C[4],RC[-1],C[6])"
ActiveCell.Formula = "=SUM(" & Range(ActiveCell.Offset(1), ActiveCell.End(xlDown)).Address & ")"••••ˇˇˇˇ
As far as I can tell In this context the: ActiveCell.FormulaR1C1 = "=SUMIF(C[4],RC[-1],C[6])" doesn't do anything
But just taking out that line this does not work:
Range("B1").Select
ActiveCell.Formula = "=SUM(" & Range(ActiveCell.Offset(1), ActiveCell.End(xlDown)).Address & ")"••••ˇˇˇˇ
Can anyone help me understand why a line that uses a sumif with relative cell references is required to make the ActiveCell scenario work???
Hi, this is a question for understanding.
What I want and what works is this:
Range("B1").Select
Range("B1").Formula = "=SUM(" & Range("B2", Range("B2").End(xlDown)).Address & ")"
What I started with and works is this:
Range("B1").Select
ActiveCell.FormulaR1C1 = "=SUMIF(C[4],RC[-1],C[6])"
ActiveCell.Formula = "=SUM(" & Range(ActiveCell.Offset(1), ActiveCell.End(xlDown)).Address & ")"••••ˇˇˇˇ
As far as I can tell In this context the: ActiveCell.FormulaR1C1 = "=SUMIF(C[4],RC[-1],C[6])" doesn't do anything
But just taking out that line this does not work:
Range("B1").Select
ActiveCell.Formula = "=SUM(" & Range(ActiveCell.Offset(1), ActiveCell.End(xlDown)).Address & ")"••••ˇˇˇˇ
Can anyone help me understand why a line that uses a sumif with relative cell references is required to make the ActiveCell scenario work???