Re: Selection.Find ... return the cursor to its original position when you're done. ... drastically slows the macro because Word has to redraw the screen each ... Using a Range object has none of those ... The 'Do While .Execute' statement relies on the fact that .Execute ... (microsoft.public.word.vba.general)
Re: VBA Word Count ...WordCount = WordCount + 1 ... I was curious why the line 'myRange.Collapse wdCollapseEnd' needs to ... values of the Range object are changed to cover the found text. ... if it's omitted, the next .Execute will indeed search ... (microsoft.public.word.vba.beginners)
Re: How to capture range from Content.Find? ... The macro runs fine ... But it was a Type Mismatch error becuse the Execute returns a Boolean, ... object are changed so the Range object contains only the found text. ... There is no "computer head room" to be saved. ... (microsoft.public.word.vba.general)
Re: How to capture range from Content.Find? ... Every time you use the Content Property, a new Range Object is instanced and set to content of the document. ... With your own Range, and child Find object, your settings within it are maintained. ... But it was a Type Mismatch error becuse the Execute returns a Boolean, ... Is there a way to use a Find from the Contents object and capture the ... (microsoft.public.word.vba.general)