JBeaucaire, just wondering if you could assist re the code.
In a new worksheet it works perfectly, but I've tried to integrate it into an existing sheet (saved as .xlsx and now .xlsm) but possibly created in an older version of excel, and I get an error at the following line of code:
If InStr(.Cells(1, Col), "Destination") > 0 Or InStr(.Cells(1, Col), "From") > 0 Then
The error says Error 13 - Type Mismatch
When I hover over the line it says InStr(.Cells(1, Col), "Destination") = Type Mismatch
.Cells(1, Col) = Error 2023 and then Col 3 further along
The sample data is the same across both workbooks, one works perfectly and the other has the error. All tabs are named identical.
Any suggestions?
Thanks
David
Bookmarks