I'm looking for a way to store a reference to a selection. It seems that I create a variable such as:
dim tSelect as Selection
Set tSelect = Selection
And I create a reference to the active selection object. If I change selection WITHOUT running any code (for instance, during a DoEvents type loop) the selection variable updates without calling:
Set tSelect = Selection
I need to create a variable that will hold a static reference to what is selected, then I need to be able to change selection without losing the reference to the previously selected text.
The Range object wont work. I need to be able to select a list of paragraphs using the ctrl key that are not necessarily near each other.
When using this method to select paragraphs, the selection object only shows the last "group" of paragraphs (for instance, if I select 1 paragraph, skip the next one and use ctrl+click to select 2 more, the range/selection objects only point at the last 2).
The following does not work either (for admittedly obvious reasons):
set tSelect = new selection
Any ideas would be greatly apreciated.