Bruce
You have only taken part of the command. The whole command is
If you look at the MATCH function in raw excel, it is in the form
match(lookup_value, lookup_array, lookup_type).
In the code:
lookup_value: val(left(filess,4)). This takes the 4 leftmost characters from the file name (ie the number component) and converts it from a character string to a number.
lookup_range: outsh.range("A:A") is column A on outsh. This will have all the numbers down the column.
lookup_type: 0 is an exact match.
rylo
Bookmarks