View Single Post
 
Old 04-05-2018, 05:17 AM
Cosmo Cosmo is offline Windows Vista Office 2007
Competent Performer
 
Join Date: Mar 2012
Posts: 240
Cosmo is on a distinguished road
Default Moving a text range to specific location

I need to move a text range (the text itself, not the range object) to a specific location within a paragraph, and I don't see any way to do so. The 'move' methods are for manipulating the object, not it's content, and the 'relocate' method only seems to move text up or down a paragraph. I didn't see any document methods to do this either.

The current situation I need is to relocate an endnote reference. There are multiple endnotes in this document, and portions of the document which are removed depending on options selected by the user. The endnotes have multiple cross-references to them, so if an endnote is contained within a portion of text which is being removed, I need to move it to the location of the first cross-reference to it, then delete the cross-reference.

Is there a way to take a range (e.g. characters 40-41) and move them to position 126?
Reply With Quote