View Single Post
 
Old 02-02-2024, 03:56 AM
hss001 hss001 is offline Windows 10 Office 2021
Novice
 
Join Date: Dec 2023
Posts: 20
hss001 is on a distinguished road
Default Read text from Start/End points

My requirement is for the user to save 2 points (start & end) in a Word document, and then for the system to loop through the sentences or paragraphs, and read and process each line.

BTW this will be controlled by Excel VBA but I think the code will be the same.

I can store the Start & End positions by using Selection.Range.
But, how would I loop through the sentences or paragraphs in-between.
I wasn't sure whether to use the Sentences or Paragraph objects.

Thanks

Last edited by hss001; 02-02-2024 at 03:56 AM. Reason: edit
Reply With Quote