Dear VBA Gurus,
I am dealing with several VLookups in my Report. I would like to set a VLookup from one worksheet to another. Currently, I am using this macro
It does work, but I am afraid, i would deal with more than 47916 rows per report. I would like to set up a Vlookup that should look up till the row is empty and paste the answer to the designated column.
I would be really happy and thankful for any hints or ideas.
Kind regards
Ildestino
I am dealing with several VLookups in my Report. I would like to set a VLookup from one worksheet to another. Currently, I am using this macro
Code:
Sub Vlookup_TestName()'
' VLOOKUPS
'
'
Sheets("MRT Scor").Select
ActiveCell.FormulaR1C1 = "=VLOOKUP(RC[-1],Auxiliaries!C[10]:C[11],2,FALSE)"
Selection.AutoFill Destination:=Range("B2:B47916")
Range("B2:B47916").Select
Calculate
Columns("B:B").Select
Selection.Copy
Range("B1").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
End Sub
It does work, but I am afraid, i would deal with more than 47916 rows per report. I would like to set up a Vlookup that should look up till the row is empty and paste the answer to the designated column.
I would be really happy and thankful for any hints or ideas.
Kind regards
Ildestino