If I include the following AutoOpen macro in a template
Sub AutoOpen()
Dim myForm As frmLetterForm
Set myForm = New frmLetterForm
myForm.Show vbModal
Unload myForm
Set myForm = Nothing
End Sub
and then create a hyperlink to that template in an Excel spreadsheet and
then click on that link, after clicking on the Yes button in response to the
question "Do you want to continue?" in the Microsoft Office Excel Security
Notice message that appears, the template is opened and the user form that
is in it is displayed.
Of course that is not desirable, because I would not really be wanting to
edit the template which is what would happen.
What you should be doing is putting a Button in the spreadsheet that calls a
macro in Excel that automates Word and then uses the
Documents.Add("templatepath\name")
command so that a new document is created from the template and then the
AutoNew command in the template will run.
See the article "Control Word from Excel†at:
http://www.word.mvps.org/FAQs/InterDev/ControlWordFromXL.htm
--
Hope this helps,
Doug Robbins - Word MVP
Please reply only to the newsgroups unless you wish to obtain my services on
a paid professional basis.