Windows 10 Excel 2019
I have the below VB code that is throwing a Run-Time code 13 mismatch error and I can not work out why.
It appears that the lineis causing the issue.![]()
Please Login or Register to view this content.
I have a Excel 2019 Worksheet, "Track Data", with data in Columns A - I
This worksheet has headers in row 1.
The data in Columns A-I is pulled by formulas using VBA from a different worksheet in the same workbook.
For Column I, if certain conditions are met on the other sheet the formula for Column I will either the
text, S, M or S+M, or it will return nothing. It is not possible for any other text to be entered by the formula.
The code below looks at Column I and where it finds a cell that does NOT have the text "S" or "M" or "S+M" it is supposed to delete the whole row.
This would then only leave rows where Column I either has "S", "M" or "M+S".
I have also tried placing double "" like.. ""S"", ""M"" or ""M+S"" but I still get the Run-Time code 13 mismatch error
I would have thought it should work as it is only looking for those three specific text values.
![]()
Please Login or Register to view this content.
Bookmarks