I\'m not great at VBA, but all of a sudden, I started getting this error. Please let me know if you can find what the error is. I\'m so stuck on this one. I did search everywher
A Run-time error '13': Type mismatch halfway through looping through a large set of values collected from the worksheet is almost always due to encountering a worksheet error code.
Are there any worksheet error codes (e.g. #N/A, #VALUE!, etc) in either Export!B2:B3500 or Topics!D767:D967 ?
I found one single #N/A cell. It was not there as an error but as a pasted value :-( It's working now!
You can quickly locate any worksheet errors in a long column of values (or even an entire worksheet) with these steps.
Worksheet errors can also be found with one or both of the following.
<range>.SpecialCells(xlCellTypeConstants, xlErrors)
<range>.SpecialCells(xlCellTypeFormulas, xlErrors)