Hi Kalbasiatka,
I have amended your code to fix the "Type mismatch" error (by removing the brackets after Dim a), and since it's easy for me to get the text file to save as tab delimited, I decided to make the code work with a tab delimited file so I don't have to deal with all the inverted commas.
I now have two issues, which are possibly related.
1. When the data pastes, the formula doesn't seem to recognise the pasted data in the cell as a date unless I click on the cell and hit Enter, and same with the amount cell. I wondering if this is because there is a special character also in the cell, and the formula can't handle special characters mixed together with values.
2. When the VBA runs, I get a window with just "400" showing, and no other information. I can make it go away if I change the line
For Each row_ In Split(txt, Chr(13) + Chr(10))
to be
For Each row_ In Split(txt, Chr(13))
but then the first cell in each row has a line break before the data (which acts as a special character and stops the formula from working, which makes me think these two issues are related). The character set of the file is MS-DOS (PC8), but I couldn't find a CreateObject("ADODB.Stream").Charset equivalent to that, so I left it as UTF-8.
I'll send the data file to you in a private message.
Thank you very much for your patience, and for your help on this one!
Bookmarks