draddy,
When using VB, if you want to put a quotation mark in a string, you need to use double quotes, so for example:
Results in a message box that displays: This is a "test" message for quotation marks.
So in your original code, you have single quotation marks, which are interpreted as starting and stopping a string, instead of interprested as quotation marks. After the =MID, you should replace all the single quotes with double quotes.
I provided a different formula that's a bit more compact but provides the same result. You can see the use of double quotes in there.
Bookmarks