Hi, I have the following code which looks up the value in cell G6 in sheet "Fulfilment Tracker - Data" and pull the adjacent cell data into cell G8 of sheet "Fulfilment Tracker -Input"
This works fine if there is only one entry, but I want to assign a macro to pull the next entry matching cell G6, unless there is only a unique record.
Any help would be appreciated.
Thanks
Code:
Set Table_Range = Workbooks("Fulfilment Tracker - Data").Sheets("All Data").Range("A2:T20000")
Set LookupValue = Workbooks("Fulfilment Tracker - Input").Sheets("Update").Range("G6")
Result1 = Application.WorksheetFunction.VLookup(LookupValue, Table_Range, 2, False)
Workbooks("Fulfilment Tracker - Input").Sheets("Update").Range("G8").Value = Result1
This works fine if there is only one entry, but I want to assign a macro to pull the next entry matching cell G6, unless there is only a unique record.
Any help would be appreciated.
Thanks