global template behaviour

A

Alder

Word 2000 (9.0.6926 SP-3)

I'm trying to implement a system of three global templates for my workgroup
and have some questions on their behaviour.

Two of the templates, ZONES.dot and CLIENTS.dot, are loaded from shortcuts
in each user's Word/Startup folder which point to the actual templates in a
shared network folder. They contain autotext only.

The third template, SHARED.dot, contains a commandbar and several VBA
modules, but no autotext. Access to these VBA modules is through a
Reference set in each of several other document templates.

I would like to have the commandbar in SHARED.dot appear each time Word is
opened. So far, I've tried saving SHARED.dot with the commandbar visible
and using the following AutoExec macro stored in a standard module named
modAuto of SHARED.dot:

Sub AutoExec()
CommandBars("SharedCommandBar").Visible = True
End Sub

In both cases, the commandbar remains hidden when Word opens. When I
right-click a toolbar to view the available commandbars, the
"SharedCommandBar" does not appear. This suggests that not all AutoExec
macros execute when Word starts up. Is this true?

True or not, what is the best way to share this commandbar and make it
available to users at startup?

Thanks,

Alder
 
A

Alder

As luck would have it I found a fix on the Word MVP site right after posting
here. I moved the commandbar into a new template named SHAREDSTARTUP.dot -
which users will load as a global template from a shortcut in the
Word/Startup folder - and added the following NewDocument event to the
template's ThisDocument object, i.e.:

Private Sub App_NewDocument(ByVal Doc As Document)

CommandBars("SharedCommandBar").Visible = True
End Sub

When I saved the new template and exited Word with the commandbar displayed,
it reappears on the next startup. :) All that's left is testing it out on
other's systems.

Cheers,

Alder
 

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