C
Charles Kenyon
I am trying to write a procedure (procedure A) that will
1) check if another procedure (procedure B) exists
2) if that procedure does not exist create it hardcoding the date on which
is first run
3) and resave the template then run procedure B
4) if procedure B exists, run procedure B
Specifically, I am trying to write an AutoExec or AutoNew procedure that
notes the current date the first time it is run and saves it in the code
(rather than as a doc variable or a doc property). Once that has been done,
the newly created code will check the current date each time it is run and
compare it to the saved date. Once a certain number of days have passed, the
code will be disabled.
TIA
Happy New Year!
--
Charles Kenyon
Word New User FAQ & Web Directory:
<URL: http://addbalance.com/word/index.htm>
Intermediate User's Guide to Microsoft Word (supplemented version of
Microsoft's Legal Users' Guide)
<URL: http://addbalance.com/usersguide/index.htm>
See also the MVP FAQ: <URL: http://www.mvps.org/word/> which is awesome!
--------- --------- --------- --------- --------- ---------
This message is posted to a newsgroup. Please post replies
and questions to the newsgroup so that others can learn
from my ignorance and your wisdom.
1) check if another procedure (procedure B) exists
2) if that procedure does not exist create it hardcoding the date on which
is first run
3) and resave the template then run procedure B
4) if procedure B exists, run procedure B
Specifically, I am trying to write an AutoExec or AutoNew procedure that
notes the current date the first time it is run and saves it in the code
(rather than as a doc variable or a doc property). Once that has been done,
the newly created code will check the current date each time it is run and
compare it to the saved date. Once a certain number of days have passed, the
code will be disabled.
TIA
Happy New Year!
--
Charles Kenyon
Word New User FAQ & Web Directory:
<URL: http://addbalance.com/word/index.htm>
Intermediate User's Guide to Microsoft Word (supplemented version of
Microsoft's Legal Users' Guide)
<URL: http://addbalance.com/usersguide/index.htm>
See also the MVP FAQ: <URL: http://www.mvps.org/word/> which is awesome!
--------- --------- --------- --------- --------- ---------
This message is posted to a newsgroup. Please post replies
and questions to the newsgroup so that others can learn
from my ignorance and your wisdom.