I need help with a range concept that I can't seem to understand. I've got the following code where I'm setting the range to another range.
Sub TestMacro()
Dim oRng, oNewRng As Range
Set oRng = ActiveDocument.Paragraphs(1).Range
Set oNewRng = oRng
oNewRng.MoveStartUnitl cset:= " ", Count:=wdForward 'Moves the start of the range to the first space that is found
oRng.Select 'For testing purposes only
oNewRng.Select 'For testing purposes only
End Sub
I thought the range in oRng would maintain the same range but it follows the oNewRng and both are exactly the same (oRng.select and oNewRng.select highlight the same part of the paragraph).