select a range of text from one Word document and copy into another Word document
问题 I'm trying to use VBA to extract sentences in one Word document and put it into another Word document. So for example, if we need to find the title of the organization, we follow the algorithm: Search for "Title" Do (Take) each character after "Title" and (stop) until "Address" 回答1: The following works but there may be a more efficient way of doing this: Sub FindIt() Dim blnFound As Boolean Dim rng1 As Range Dim rng2 As Range Dim rngFound As Range Dim strTheText As String Application