Apologies, here is the same code with code tags. I wrote this after a day of staring at various code annoyances so I accidentally missed rule 3
first off I apologise as I am struggling to explain what I want to do:
I am trying to do vlookups (excel 2010) with the result of "unknown" if there is an error on a column of varying length, autofilling to the last row of adjacent column.
The current code I have works fine, however I want to include this in a loop where the vlookup values/array/column index number change depending on which worksheet the value has been taken from. I have tried to use application.vlookup and application.worksheetfunction.vlookup in the past but autofill only fills the first value not its formula.
any idea how I can use vlookup (including an 'unknown' on error) that I can assign preset values for the table array and index number that can be autofilled down a column of varying length?
thank you for trying to understand my question!
Bookmarks