continuation of this question
Currently I have code in document 1 to open a second document based on a template:
document2.dot has a Sub Document_New() routine.
I would like to run one set of code in document2.dot if document2.dot is opened by double clicking on it but run a different set of code if it is opened from document 1. Document 1 could have any name.
If opened from document 1 then
do this instead
Any way to do that?