Hello! I have a code where I need to use Vlookup. In Workbook nr. A I have one row with names, then one row next to it with numbers. In workbook nr. B I have named each sheet with the names from workbook A. I would like to loop through all sheets in workbook nr. B and use vlookup/match and set the matched number in column B(next to the names). Code:
Names is in column A, workbook nr. A, numbers in column B.
Really hope someone is able to help.Sub nwid()
Dim ws As Worksheet
For Each ws In Workbooks("Handel lister.xlsx").Worksheets
Range("B1").FormulaR1C1 = _
"=VLOOKUP(RC[-1],[Aksjer.xlsm]Nummerering!C1:C2,2,TRUE)"
Next ws
End Sub
Bookmarks