I you could use another procedure if you want. I was just trying to show that ThisDocument refers to the document (or template) that contains the code.
For example:
Debug.Print ThisDocument.Name is going to return the name of your template. Not the name of the actual document you may be doing a process on.
|