I have this code, that works 90-95% of the time, but once in a while it will only delete part of the piece that I want deleted.
While InStr(fnd, SCHFR) <= 0 And c <= 300
c = c + 1
fnd = Sheet1.Cells(c, 8)
Wend
If c >= 300 Then
Sheet2.Cells(r, cmn) = "Not found"
Else
cleanup = InStr(1, fnd, ": ")
finalString = Right(fnd, Len(fnd) - cleanup - 1)
Sheet2.Cells(r, cmn) = finalString
End If
scnm = scnm + 1
cmn = cmn + 1
c = 1
Wend
scnm is just the counter to keep track of what im seraching for in the string to clean it up. SCHFR is defined like this:
Select Case scnm
Case 1
SCHFR = "First Name:"
Case 2
SCHFR = "Last Name:"
Case 3
SCHFR = "Phone:"
Case 4
SCHFR = "Seconday Phone:"
Case 5
SCHFR = "Email:"
Case 6
SCHFR = "SecondaryEmail:"
Case 7
SCHFR = "Country:"
End Select
The results come back like "First Name: Sarah", and I want to remove the "First Name: " part so its just "Sarah", but occasionally I'll get a cell that has something like "rst Name: Sarah" instead, while all the others on the sheet around it are correct.

Whilebut twoWend...