Re: Add-Ins

Tech-Archive recommends: Fix windows errors by optimizing your registry



Thanks for the info, couple of things.

I understand I can't edit the "code template" unless I have the it open.
How do I reference the subs in my "code template" from within my working
template?
Also, these files will be passed out to users at different locations, what
is the best way to find out what their startup location is?

thanks

"Anne P." wrote:

> Answers to your questions are:
>
> First, if you place the "code template" in your startup directory, you won't
> need to go into Templates and Addins to add it. It will load every time a
> user opens Word.
>
> Second, if you want to edit the code in this template, it will appear in the
> Project Explorer in the VB Editor, but you can't edit the code because it is
> loaded. You have to "Open" the template so that you may make edits to the
> code. In Windows Explorer, navigate to your Startup directory, right-click
> over the name of the "code template" and choose Open. If you double-click
> the template name, you will still not be able to make edits to the code. By
> the way, when you do it this way, if you make changes and save it the
> changes are made immediately to the copy that is in the Startup directory.
> If you want to make any changes and test them first, you might want to copy
> this template to a different directory before opening.
>
> Third, I just learned this myself: You have various templates (i.e.,
> Letter.dot, Memo.dot, Fax.dot) that you need to use the code from the "code
> template" to complete the documents. In any version of Windows before
> Windows 2000, you would open the VB Editor and choose Tools, References,
> then locate the "code template" and check the box next to it (you would have
> to do this in each template that you wanted to be able to grab code from the
> "code template". That was when the startup directory was the same for all
> users (something like: C:\Program Files\Microsoft Office\Office9\Startup).
> Now the location is different for each user because it is under Documents
> and Settings/username/ etc..... I just recently found out that all I have
> to do to call the code from the global template is this:
>
> Application.Run globaltemplatename.modulename.procedurename
>
> Hope this helps.
>
> Anne P.
>
> "jag" <jag@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
> news:805DA389-16D8-4F0E-95FB-60E3998849E8@xxxxxxxxxxxxxxxx
> >I have several template files where each template is different, but most of
> > the code in each is the same. Everytime I need to modify one of the
> > userforms or something in the files I have to make the change in each
> > file.
> > I want to be able to have a central code template that all these files can
> > share to get the "common" code from.
> >
> > I attempted this by creating a "code" template that had the userforms and
> > code that all the files would share. I then went into one of the template
> > files and under Tools, Templates and Add-Ins, inserted my "code" template
> > into the list.
> >
> > I can now see the "code" template listed in my VB project window, but have
> > two issues.
> >
> > 1. If I try and expand the "code" template in the project window, I get
> > an
> > error message, "Project is unviewable". What have I done wrong???
> > 2. How do I reference the userforms, subs, etc. that I need from the
> > "code"
> > template.
> >
> > Hope this makes sense,
> > Thanks for your help..
> > jag
>
>
>
.



Relevant Pages

  • Re: Office Word 2003 fails to load template.
    ... By all means edit the standard features of normal.dot such as page margins, fonts, styles, etc. ... Then put a shortcut to the template on the desktop and when you double-click it, the default action is to open a new document based on the template. ... When Word opens with the ... >> change to 'page view' or allow any other similar format changes. ...
    (microsoft.public.word.application.errors)
  • Re: How to edit the template of custom form library
    ... Once again this newsgroup is not for Windows SharePoint Services. ... "how to edit form temple in form library." ... > I need to create custom list template. ... > I am able to create form library using this custom form library template. ...
    (microsoft.public.sharepoint.teamservices.caml)
  • Getting notification for dynamically added controls
    ... I can build a dialog in the editor and add the fields, ... things like populate the data fields and read back the user entries. ... and the majority of work seems to be in creating a template. ... like when the user clicks in an edit field. ...
    (microsoft.public.vc.mfc)
  • Re: how to insert a microsoft word into a form of a database
    ... There are some other properties that you can set that might take care of your problem automatically, or you can simply edit the image (in Paintbrush or wherever) to crop it the way you want before inserting it. ... the template was reduced and shrunk to about 80%. ... If you intend to give a copy of your database to someone else, ...
    (microsoft.public.access.tablesdbdesign)
  • Creating a custom picture library
    ... You can turn a customized picture library into a template ... >But when I tried to create the promotion library using ... >list page and edit page will not be displayed. ... i tried to upload a picture into the promotion ...
    (microsoft.public.sharepoint.windowsservices)