Anne Troy
MrExcel MVP
- Joined
- Feb 18, 2002
- Messages
- 2,632
- Office Version
- 365
- Platform
- Windows
I need to copy formulas in 3 cells:
J2, K2, L2
down to the last-filled row in column I.
I found this code, but have no clue how to alter it.
I thought I would change "K" to "J:L", but couldn't figure out what the rest of the code does. Ugh.
Thanks so much!!
J2, K2, L2
down to the last-filled row in column I.
I found this code, but have no clue how to alter it.
Code:
Sub Test()
Dim LastRow As Long
LastRow = Range("K" & Rows.Count).End(xlUp).Row
Range("V4").FormulaR1C1 = "=RC[-18]"
Range("V5:V" & LastRow).FormulaR1C1 = "=IF(RC[-18]="""",R[-1]C,RC[-18])"
End Sub
I thought I would change "K" to "J:L", but couldn't figure out what the rest of the code does. Ugh.
Thanks so much!!