Originally posted by Paul282:
The mid() function can be a little combersome for lots of replacements especially if you're replacing the same text (like in a multi find replace program )
read to a string then use the replace function.

FileString = Replace(FileString, OldText, NewText)

For some reason this function is not that well known

When writing FileString back to the document, double quotes are added to the start and end of the string. The double quotes are not in the string to start with.
Take the words NEW DATA. When I write it back, it comes out "NEW DATA". If I replace in the string the Quotes with nothing it does not get rid of the quotes because they are not really in the string.