Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / February 2007

Tip: Looking for answers? Try searching our database.

Launching Code on Document_Open() in Word template

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
CKBlack007@gmail.com - 01 Feb 2007 19:39 GMT
I have been tying my code to execute on the opening of the document in
Word 2000 (a restriction unfortunately until they go Word 2007).  The
code is not complex, and runs fine on opening the doc as designed;
however, when I convert the doc to a word template, the code does not
execute on using the template.  The code does, of course, keep with
the new document that is created from template and therefore executes
when that saved document is re-opened.  I need to have the template
execute the code on template opening as well.  I did my college try at
the research materials to see what, if anything, I was overlooking to
no avail.

Can anyone share with me what I have overlooked in having code execute
on template document open in word?

Thanks in advance,

Chris
CKBlack007@gmail.com - 01 Feb 2007 19:46 GMT
Ugh!  Nevermind.  I just needed the exercise and embarassment of a
public posting to make me think through it.  <sheepishly going to get
some coffee>

For anyone that found this by Google, the answer was to place the code
in Document_New()
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.