Results 1 to 20 of 22

Thread: Find different expressions in same text (wildcard)

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #15
    VBAX Regular
    Joined
    Apr 2020
    Posts
    12
    Location
    People, thanks a lot for the help. But I do not have control the way form is produced and it can have updates along the time.
    I need to search strings between expressions. I cannot advance.
    I would like something like described here ( I think I am making horrible mistakes, but I need to overcome this to go ahead).

    Set orng = ActiveDocument.Range (start:=selection.end, end:=activedocument.range.end)
    With orng.Find
        Do While .Execute("1. Full name:")
            orng.Collapse 
            .Execute (“2. ID:”)
            selection.end = orng.end
            strText = Trim(orng.Text) & "', '"
            Exit Do
        Loop
    End With
    Last edited by Aussiebear; 03-06-2025 at 04:05 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
  •