A
and
Hi,
Does anyone know how to make a variable persistent over a long time?
I have a macro that manipulates words that are selected in a document.
Therefore I retrieve (from the registry or an ini file) the name of a
database file and store this name into a variable.
I prefer to do this only once, when the macro is initiated/started for
the first time, rather that retrieving the database name each time a
word is manipulated.
Any idea how I could achieve this? How I can keep my macro "alive" while
no words are selected or manipulated?
The macro's are written only in "Sub" procedures, there are no functions
and no forms.
Kind regards,
ANDy
Does anyone know how to make a variable persistent over a long time?
I have a macro that manipulates words that are selected in a document.
Therefore I retrieve (from the registry or an ini file) the name of a
database file and store this name into a variable.
I prefer to do this only once, when the macro is initiated/started for
the first time, rather that retrieving the database name each time a
word is manipulated.
Any idea how I could achieve this? How I can keep my macro "alive" while
no words are selected or manipulated?
The macro's are written only in "Sub" procedures, there are no functions
and no forms.
Kind regards,
ANDy