Results 1 to 20 of 40

Thread: Macro to find string and copy sentence containing string.

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #39
    VBAX Regular
    Joined
    Nov 2015
    Posts
    10
    Location

    Using the wildcard feature to find 2 words simultaneously

    Greg, Thank you. I feel very embarrassed, and your response prompted me to learn more about the wildcard feature (word.mvps.org/faqs/general/usingwildcards.htm). It is a lot more powerful than I had known only days ago.

    My test document contained upper case words, so my initial macro never ended. I modified the wildcard to be:
    Const strFind As String = "<[SshaWwi]{2,3}ll>"
    I tested it on my test document and then a "real" document. Works like a charm. I would have never gotten this far without your help. Thank you so very much.
    Last edited by Aerogal; 12-29-2015 at 11:04 AM.

Posting Permissions

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