Open a MS Word template via command button on a form

emcf

Member
Local time
Today, 15:46
Joined
Nov 14, 2002
Messages
209
morning all,

I need to create a button to open a MS word template (currently saved in the usual folder for word templates) - my DB skills (!) allow me to create a button that will open MS word, but for ease of use I would really like to be able to click on a button and have the template open. I've tried searching the forum for this but nothing seems directly relevant - the stuff i have found is somewhat complicated for a novice like me......
 
thanks neil, that was one of the threads I looked at but my coding deciphering skills are non existant - the template i need to use is called ncisdfi.dot........please excuse my ignorance but where in the code should i enter the template name?
 
Docpath = DocName.Column(2, DocName.ItemsSelected)
Doctitle = DocName.Column(1, DocName.ItemsSelected)

This bit of the code allows the user to select the template from a combobox. Docpath is the UNC path to the directory that the template is stored in, Doctitle is the file name. Substitute your fixed template name and path here in a single entry if that's what you need.
 

Users who are viewing this thread

Back
Top Bottom