I have about 40K+ lines of "raw data" that I need to analyze. I am only interested in the lines that contain the word "Degraded". I have a macro that searches all lines of raw data and extracts any line containing the word "Degraded" (this macro also unlocks and locks the worksheet). The macro was working fine in the past; however, I am now getting a "Run-time Error '13' Type Mismatch" when I run the macro. It seems to get hung up on the string
"If InStr(v, "Degraded.") > 0 Then"
This is probably because the word "Degraded" is not an integer.
Does anyone know a better way to do this, or other work-arounds.
The full macro is posted below:
Bookmarks