I'm trying to use Cells more these days over Range, and have dipped my toes into R1C1.
I'm using AutoFill, and what I have encountered is when using R1C1 the referenced cell is locked, similar to using anchors.
When I tried Cells in the formula I receive "#NAME?".
I'm trying to learn other options other than
Thank you
I'm using AutoFill, and what I have encountered is when using R1C1 the referenced cell is locked, similar to using anchors.
When I tried Cells in the formula I receive "#NAME?".
I'm trying to learn other options other than
Cells(5, 10).Formula = "=Y5"
, maybe that's the best solution?
VBA Code:
LR = Cells(Rows.Count, 1).End(xlUp).Row
Cells(5, 10).Formula = "=" & Cells(5, 25) or Cells(5, 10).FormulaR1C1 = "=R5C25"
Cells(5, 10).AutoFill Destination:=Range(Cells(5, 10), Cells(LR, 10)), Type:=xlFillDefault
Thank you