Hello!
What do I need to substitute B2:G20000 with so the vba-code is not producing a debugging problem? Important: the range needs to be absolute, i.e. always B2:G20000 and not change when I copy it down to E2885. This is violated when I use the R1C1 notation, which is why I tried with B2G20000. But it's not working...
Worksheets("Matching").Activate
Range("E2").Select
ActiveCell.FormulaR1C1 = _
"=VLOOKUP(RC[-4],'FSA Figures'!B2:G20000,6,FALSE)"
Selection.AutoFill Destination:=Sheets("Matching").Range("E2:E2855"), Type:=xlFillDefault
I would be very happy for any help!
Thank you!
Fabian
What do I need to substitute B2:G20000 with so the vba-code is not producing a debugging problem? Important: the range needs to be absolute, i.e. always B2:G20000 and not change when I copy it down to E2885. This is violated when I use the R1C1 notation, which is why I tried with B2G20000. But it's not working...
Worksheets("Matching").Activate
Range("E2").Select
ActiveCell.FormulaR1C1 = _
"=VLOOKUP(RC[-4],'FSA Figures'!B2:G20000,6,FALSE)"
Selection.AutoFill Destination:=Sheets("Matching").Range("E2:E2855"), Type:=xlFillDefault
I would be very happy for any help!
Thank you!
Fabian