View Single Post
 
Old 05-05-2021, 09:15 AM
NameIsJustAnIllusion NameIsJustAnIllusion is offline Windows 10 Office 2019
Novice
 
Join Date: May 2021
Posts: 11
NameIsJustAnIllusion is on a distinguished road
Default Extracting text from Start and End position

I know how to extract text in MS Word Content between 2 words using `.Find`

I am trying to extract text (with all formatting) between 2 positions. For example 10 and 200.

If I use MID then I lose formatting. One thought process is

1. Delete text from position 1 till 2
2. Delete text from position 201 till end of document

This is where I am stuck. If the logic is correct then how do I delete the relevant text?
Attached Images
File Type: png Sample.png (94.2 KB, 21 views)
Attached Files
File Type: docx Sample.docx (15.5 KB, 5 views)
Reply With Quote