Find a string in a document and delete everything after it
问题 I want to find a string in a word document and delete everything after it. What is the best way to do this without using the Selection object? 回答1: Use a Range object instead. Straight outta the Word 2003 help: If you've gotten to the Find object from the Range object, the selection isn't changed when text matching the find criteria is found, but the Range object is redefined. The following example locates the first occurrence of the word "blue" in the active document. If "blue" is found in