Hi i am doing a code on InStr and got stuck at this.
The Data in column B is the name while the code will input the middle name in Column C
Example: John_p.Doe result will p
i got a code but it keep saying invalid procedure and i dont know why please help thanks!
The Data in column B is the name while the code will input the middle name in Column C
Example: John_p.Doe result will p
i got a code but it keep saying invalid procedure and i dont know why please help thanks!
Code:
Cells(i, "C").Value = Trim(Mid(partno, InStr(1, partno, " ") + 1, InStr(InStr _
(1, partno, "_") - 1, partno, " ") - InStr(1, partno, ".")))