Sorry if I wasn't clear in in my explanation.
Initially, I did a vlookup function on cell F2 and G2 across an external workbook (CSV file format) where the autofill range is determined by the contents of A.
Eg in Column F
Eg in Column G
However, now I have copied the contents from File0705100.csv and paste it over in a new worksheet called 'Data' (XLS file format).
Eg in Column F
Eg in Column G
I have recoded a macro that runs the vlookup across the 'Data' worksheet. So when i tried combining the recorded macro to the code below, it only runs the vlookup on col F and col G and displays the value but does not extend the cells all the way to the last row and remove the formulas on both columns. Have I missed out something in the codes?
Bookmarks