Hihi,
I need help in extracting a string between 2 special characters.
The string is "A086 > Windsor Yard - 7091 Smith Industrial Drive - 70155895"
Requirement:
"Windsor Yard" - Special characters are " >" and "-"
I got some parts of my VBA to work but im stuck on this one, not sure how to proceed.
'To separate product
sht.Range("o" & i).Value = WorksheetFunction.IfError(Left(sht.Range("n" & i), WorksheetFunction.Find(" -", sht.Range("n" & i)) - 1), sht.Range("n" & i))
'To separate site to yard and CSO =TRIM(MID(H2,FIND(">",H2)+1,FIND("-",H2)-FIND(">",H2)-1))
sht.Range("j" & i).Value = WorksheetFunction.IfError(Mid(sht.Range("i" & i), WorksheetFunction.Find("> ", sht.Range("i" & i)) + 1), sht.Range("i" & i))
Please help
Thanks
I need help in extracting a string between 2 special characters.
The string is "A086 > Windsor Yard - 7091 Smith Industrial Drive - 70155895"
Requirement:
"Windsor Yard" - Special characters are " >" and "-"
I got some parts of my VBA to work but im stuck on this one, not sure how to proceed.
'To separate product
sht.Range("o" & i).Value = WorksheetFunction.IfError(Left(sht.Range("n" & i), WorksheetFunction.Find(" -", sht.Range("n" & i)) - 1), sht.Range("n" & i))
'To separate site to yard and CSO =TRIM(MID(H2,FIND(">",H2)+1,FIND("-",H2)-FIND(">",H2)-1))
sht.Range("j" & i).Value = WorksheetFunction.IfError(Mid(sht.Range("i" & i), WorksheetFunction.Find("> ", sht.Range("i" & i)) + 1), sht.Range("i" & i))
Please help
Thanks