Hi Andy,
Was loath to do so, simply for embarrassment's sake as it's someone else's code and quite shoddy! I'm not entirely sure why they've done it this way instead of just importing the file, but it's part of a very large project with many global variables, some of which are set by this Sub. Further data is added by other subs.
Also, a slight change to my OP... It turns out the field in question ("1st Protection Type") isn't being read simply as the number 1, but being split into two parts - the first containing "1" and the second containing "Protection Type", with the interceding "st " being treated as if it were a delimiter.
My comments (referenced in the code)
1: "pathIn" is a global variable set at startup which points to a source directory
2: "shtS.getVal" is a Function which returns a filename string from a table (contained on that sheet)
3: "tRowMax" & "tColMax" are global variables which retain the row/column extent of the imported data, including title rows.
As I said before, the ONLY thing which has changed is the source data.
Sample source data (BEFORE the change):
Sample source data (AFTER the change):
Bookmarks