View Single Post
 
Old 01-05-2024, 08:31 AM
vivka vivka is offline Windows 7 64bit Office 2016
Expert
 
Join Date: Jul 2023
Posts: 302
vivka is on a distinguished road
Default

Hi! The codes in posts 11 & 15 select the sentence, which can be copied. Besides, the code in post 15 adds the sentence to a variable. And again your terminology needs clarification: what does "retrieve" mean? If you need to find all sentences with the key wd in the selected range, you can modify the code to highlight the sentences for further work with the highlights. Also, the code can be modified to select each found sentence one-by-one with a msgbox asking whether you want to procede, but note that if a code selects sth & pauses (not ends!) showing a msgbox, it doesn't mean you can work with the selection because the access to the text/screen will be denied.
Reply With Quote