L
Larry
The solution to this was simply to set the search to
ActiveDocument.Range. That avoids the need of returning the cursor to
the place in the document and returning the document to the same place
in the window where they were when the macro began, because, when the
Search is in ActiveDocumentRange, the cursor and the document don't
move.
I should have know this before, as Jay Freedman showed it to me in a
couple of macros, but I didn't make the connection to this other
problem. In fact, I still had a bunch of macros that searched in
Selection.Range instead of ActiveDocument.Range, and I didn't realize
until now the different results of those two methods.
Larry
ActiveDocument.Range. That avoids the need of returning the cursor to
the place in the document and returning the document to the same place
in the window where they were when the macro began, because, when the
Search is in ActiveDocumentRange, the cursor and the document don't
move.
I should have know this before, as Jay Freedman showed it to me in a
couple of macros, but I didn't make the connection to this other
problem. In fact, I still had a bunch of macros that searched in
Selection.Range instead of ActiveDocument.Range, and I didn't realize
until now the different results of those two methods.
Larry