VBA: Why is Range.Find.Execute deselecting text in a Word doc?
问题 Why this VBA code ((initial part of a sub) modifies the visible selection in the Word document? I'm not modifying any selection. As per MSDN description: "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. (Taken from: Find Object (Word)) So the following code should just modify the Range, and not affect the selection at all... Sub SelectTarget() Dim MyRange As Range Set