if i have this
im basically filtering, one at a time, each name in column A and looking if there are repos in column C...if there's not, do some code ...otherwise, do some other code
but for whatever reason....i got this type mismatch error for one specific name....when i filter for that name....one row has repo, the other row has reverse in column C
the code works just fine for other names where there are both "repo" and "reverse"
i guess the thing that stands about this particular name is that there are only two rows of data, whereas the other names with repo and reverse had several rows of data for each
Code:
finalrow = Cells(Rows.Count, "A").End(xlUp).Row
Set myrange = range("c3:c" & finalrow).SpecialCells(xlVisible)
If Application.CountIf(myrange, "Repo") = 0 Then
im basically filtering, one at a time, each name in column A and looking if there are repos in column C...if there's not, do some code ...otherwise, do some other code
but for whatever reason....i got this type mismatch error for one specific name....when i filter for that name....one row has repo, the other row has reverse in column C
the code works just fine for other names where there are both "repo" and "reverse"
i guess the thing that stands about this particular name is that there are only two rows of data, whereas the other names with repo and reverse had several rows of data for each