In VBA, I know how to import data from an Excel File into Access using a define range of cells from the file ( using DoCmd.TransferSpreadsheet acImport)
However if lines are inserted in the excel files my range address is wrong. So I would like to lookup a keyword in my excel file first that would give me a row number so I can define a range based on the position of the keyword in the file.
Something like
I tried to use
Application.WorksheetFunction.VLookup
But it did not work
Thank you