Hi,
I've applied similar logic to two other macros but for some reason I am unable to figure out what I'm doing wrong
I am probably doing some very stupid!
I will appreciate any help,
Thanks!
I've applied similar logic to two other macros but for some reason I am unable to figure out what I'm doing wrong
Code:
Sub sfortest()Sheets("Cleanup").Select
Range("M2").Select
Dim Lastrow As Long
Lastrow = Range("L" & Rows.Count).End(xlUp).Row
Dim strFormulas(1 To 2) As Variant
With Sheets("Cleanup")
strFormulas(1) = "=IFERROR(VLOOKUP(G2,'HCBF RV Portfolio'!G:Q,9,0),"")"
strFormulas(2) = "=IFERROR(VLOOKUP(G2,'HCBF RV Portfolio'!G:Q,11,0),"")"
'issue on this line' .Range("M2:N2").Formula = strFormulas
.Range("M2:N" & Lastrow).FillDown
End With
End Sub
I am probably doing some very stupid!
I will appreciate any help,
Thanks!
Last edited: