String too long...



Hello,

This example works for Selection.TypeText seems to work well even after a .Find & .Execute

http://support.microsoft.com/kb/181110

I am maintaing an application and am a bit new working with Word Objects.

I am in another section of code and am not been able to obtain the benefit of Selection.TypeText the code happens to be working with the Range object.

How might one go about implementing this if working with a Range.Find & Execute?

- Mike

Relevant Pages

  • 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)

Loading