M
Moishy
How can a macro be set to 'remember' the selected text, and later be
able to select that same text?
able to select that same text?
Well, you can store the text in a variable. But what is the best
approach depends on what you are trying to achieve, of course.
Stefan Blom
Microsoft Word MVP
I must insure that part of a document was not edited in the current
session. On open select some text (it may be different in each
session) and on close check if it has changed, if not select it, if it
has changed display a msgbox.
Moishy explained on 5/16/2012 :
If you are only comparing text, storing it in a variable should do the
trick. However, note that you can use *document protection* to prevent
undesired editing to text, which may be a better option.