Problem with startup templates

J

JJTB somhorst

Dear sir/madam,

I have a question about start-up templates. I have created an start-up template which contains some vba functions and subs. I would like to call these functions from other templates. The reason is to keep the global code at one place which is easier maintainable.

So I created an start-up template added it to the

C:\Documents and Settings\<user>\application data\Microsoft\Word\STARTUP

directory and saw that it was loaded. Unfortunately I cannot access code from that template in another template I created or any other document I am creating.

Could someone explain to me what could be the cause of this? The directory above is a trusted directory so why doesn't it work?

EggHeadCafe - Software Developer Portal of Choice
Silverlight 2 Beta 2 - Doing Data Part IV: Browser / Cookie Interaction
http://www.eggheadcafe.com/tutorial...e0-4d6f4f5f7063/silverlight-2-beta-2---d.aspx
 
D

Doug Robbins - Word MVP

You need to set a reference in Tools>References in the Visual Basic Editor
to the template in which the functions and subs are located.

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP, originally posted via msnews.microsoft.com
in message news:[email protected]...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top