Hey guys can someone give me an extensive lesson on how to reference
Just Rows, Just Columns or Cell objects in a FormulaR1C1 Formula. I Really need help with it, and I hope to display it in traditional "A1" format Here is an example
'Type Ref in C8 of a blank work book
'and type random numbers from c9:E9
Dim TestIDC As String, TestIDR As String
Sub add()
ActiveSheet.Cells.Select
Selection.Find(What:="Ref", After:=ActiveCell, LookIn:=xlFormulas, _
LookAt:=xlWhole, SearchOrder:=xlByRows, SearchDirection:=xlNext).Select
TestIDC = Selection.Column
TestIDR = Selection.Row
Range("F9").Select
ActiveCell.FormulaR1C1 = "=sum(" & TestIDC & TestIDR & " :rc[-1])"
End Sub
I am hoping for the activecell(F9) to display =sum(C9:E9) in the cell
any Ideas?
Just Rows, Just Columns or Cell objects in a FormulaR1C1 Formula. I Really need help with it, and I hope to display it in traditional "A1" format Here is an example
'Type Ref in C8 of a blank work book
'and type random numbers from c9:E9
Dim TestIDC As String, TestIDR As String
Sub add()
ActiveSheet.Cells.Select
Selection.Find(What:="Ref", After:=ActiveCell, LookIn:=xlFormulas, _
LookAt:=xlWhole, SearchOrder:=xlByRows, SearchDirection:=xlNext).Select
TestIDC = Selection.Column
TestIDR = Selection.Row
Range("F9").Select
ActiveCell.FormulaR1C1 = "=sum(" & TestIDC & TestIDR & " :rc[-1])"
End Sub
I am hoping for the activecell(F9) to display =sum(C9:E9) in the cell
any Ideas?