How do I search for text in a MS document using vb.net and then return the 7 characters adjacent to the found text?
Posted on 2014-07-16
I have been trying, with very little success, to search for a string in an MS Word document using VB.net and then move to the end of that string, select the next 7 characters and return them as a string. I have tried various permutations of the selection and range methods and properties but I can't find a way to move to the end of the found string, extend the range/selection for 7 characters and then return those 7 characters.
Any help would be very much appreciated,