I have strings such as:
The sky, is blue, ID_123
The grass is green, ID_345
All trees have leaves, PW_456
Tek-Tips is Great, YY_331
I would like to eliminate the identification code and print out only:
The sky, is blue
The grass is green
All trees have leaves
Tek-Tips is Great
Considerations:
1) There might be commas in the string I want to print.
2) I will know all the possibilities following the commas. So, I know that the strings will be limited to having "ID", "PW", or "YY".
3) There will never be an identification code such as "ID_123" embedded in the string I want to keep".
I've tried LEFT, InStr and a combination of the two. Your help will be greatly appreciated.
btw... Crystal XI
The sky, is blue, ID_123
The grass is green, ID_345
All trees have leaves, PW_456
Tek-Tips is Great, YY_331
I would like to eliminate the identification code and print out only:
The sky, is blue
The grass is green
All trees have leaves
Tek-Tips is Great
Considerations:
1) There might be commas in the string I want to print.
2) I will know all the possibilities following the commas. So, I know that the strings will be limited to having "ID", "PW", or "YY".
3) There will never be an identification code such as "ID_123" embedded in the string I want to keep".
I've tried LEFT, InStr and a combination of the two. Your help will be greatly appreciated.
btw... Crystal XI