View Single Post
 
Old 08-18-2014, 06:06 PM
gmaxey gmaxey is offline Windows 7 32bit Office 2010 (Version 14.0)
Expert
 
Join Date: May 2010
Location: Brasstown, NC
Posts: 1,617
gmaxey is just really nicegmaxey is just really nicegmaxey is just really nicegmaxey is just really nicegmaxey is just really nice
Default

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.
__________________
Greg Maxey
Please visit my web site at http://www.gregmaxey.com/
Reply With Quote