Results 1 to 7 of 7

Thread: Word macro to allow the user to edit two displayed documents in the middle of complex

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #4
    VBAX Guru macropod's Avatar
    Joined
    Jul 2008
    Posts
    4,273
    Location
    So why are you using DoEvents? I can't see that it's doing anything other than chewing up CPU resources. Why not use a wait function in the loop instead? If you set the wait time to 1 second, for example, your average wait time till resuming after closing the userform would only be 0.5 second.

    As for looping through all paragraphs and only doing something with the "Bible Text" Style, a wildcard Find looking for all content formatted in that Style would be far more efficient.
    Last edited by macropod; 09-16-2024 at 12:19 AM.
    Cheers
    Paul Edstein
    [Fmr MS MVP - Word]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •