View Single Post
 
Old 02-05-2024, 04:37 AM
Italophile Italophile is offline Windows 11 Office 2021
Expert
 
Join Date: Mar 2022
Posts: 542
Italophile is just really niceItalophile is just really niceItalophile is just really niceItalophile is just really nice
Default

If you are using the current selection you do not have two ranges. You have one Range with a Start point and an End point. Range.Text is the text between them.

If you are separately obtaining the start and end point by some other means then you could use
Code:
Set rng3 = ActiveDocument.Range(Start:=rng1.Start, End:=rng2.End)
You may find it helpful to review the documentation:
Working with Range Objects | Microsoft Learn
Range object (Word) | Microsoft Learn
Reply With Quote