I just started to use the VBA. I have a workbook with two sheets. On the first sheet, in column "D" I have part numbers. On the second sheet, again I have part numbers in column "A", and the description of each part numbers in column "B". On the Sheet1 I want to collect the following data:
- If Sheet2 column "A" contains a part number from Sheet1 column "D", then the column "O" value need to be Sheet2 column "B".
Now self using Vlookup through recording macro:
Application.CutCopyMode = False
Application.CutCopyMode = False
ActiveCell.FormulaR1C1 = "=VLOOKUP(RC[-11],'RIG MB'!C[-14]:C[-13],2,0)"
Range("O2").Select
Selection.AutoFill Destination:=Range("O2:O3430")
Range("O2:O3430").Select
I need a vba code for it, but not the vlookup worksheetfunction, I need something faster. Also I want to loop it, until the Sheet1 column "D" has data in it. Thank You in advance!