Target
New Member
first post here so go easy
I have a routine that loops through a text file and writes a (manipulated) string into an array, then writes the array out to a range, or at least that's what it's supposed to do...
I can fill the array no problem, but when I try and write it out again I get an 'error 13, type mismatch' error.
I can loop through the array and write out the values so I know the values are there (though this isn't viable as I'm typically looking at >100K records).
I understand what the error message is implying, but I don't understand it in the context I'm getting it, ie the range should be type agnostic.
FWIW I have an equivalent routine in another macro that does work...
I've been researching on this for over a week and I haven't found anything useful, though it seems to be a common enough error, so if anyone here has any idea's I'd be most grateful
I have a routine that loops through a text file and writes a (manipulated) string into an array, then writes the array out to a range, or at least that's what it's supposed to do...
I can fill the array no problem, but when I try and write it out again I get an 'error 13, type mismatch' error.
I can loop through the array and write out the values so I know the values are there (though this isn't viable as I'm typically looking at >100K records).
I understand what the error message is implying, but I don't understand it in the context I'm getting it, ie the range should be type agnostic.
FWIW I have an equivalent routine in another macro that does work...
I've been researching on this for over a week and I haven't found anything useful, though it seems to be a common enough error, so if anyone here has any idea's I'd be most grateful