View Single Post
  #6   Report Post  
Posted to microsoft.public.word.docmanagement
Cindy M. Cindy M. is offline
external usenet poster
 
Posts: 2,416
Default Specifying Toolbars in a Template

Hi ?B?SmFuZQ==?=,

I have Office 2003. When I held down the Control key, it asked me whether
I'd like to open Word in safe mode. If I clicked Yes, the installation
default toolbar settings show. If I click No, then mine open. (I'm 99.99%

I
have correctly saved these to Normal.dot.) When I launched Safe mode I then
tried to open 10QQ, but it asked me for a "passphrase to decrypt" the file!
No luck there!

Then there's a problem. Word should be able to open the file. If you can't
open the file in Safe Mode on your machine, then others may have problems with
it, as well...

If I click No, then mine open. (I'm 99.99% I
have correctly saved these to Normal.dot.)

With your reference to "the list in Tools/Templates and Addins", if you mean
go to the Organiser dialogue box and then the Toolbar list, in 10QQ, my
special toolbar is listed (Survey Toolbar). In Normal.dot, no toolbars are
listed.

Unless your tools (="then mine open") were only added to Word's internal
toolbars, then you've got another problem.

And no, I didn't mean the Organizer (although it's good to know that your
Survey Toolbar shows up there as being in 10QQ). I meant the list box at the
bottom of Templates and Add-ins. This will list any templates that are loaded
as global add-ins (similar to Normal.dot).

You've said "the toolbars in your other, global templates will NOT travel
with 10QQ". I've just checked when I've sent the file to someone else, and
you are correct. My customised toolbars don't appear on their screen.

That's good :-)

But the recipients' own toolbars also show. I would
prefer to override the recipients' toolbars and just have the Survey Toolbar
show. That way I can control where a macro button appears (that is the only
really special element).

This would require macro code in the file that executes when the document is
opened. Something like the following (although I can't guarantee this is
exactly what you need):

Sub AutoOpen() 'Must be this name
Dim doc as Word.Document
Dim cb as Office.CommandBar

Set doc = ActiveDocument
'Stores changes in this document
'Important to not affect the user's normal settings!
Application.CustomizationContext = doc
For each cb in Application.CommandBars
'Test caption as it appears in your toolbar
If cb.Name "Survey Toolbar"
cb.Visible = false
Else
cb.Visilbe = true
End if
Next
End Sub

I've obviously not paid
enough attention to the toolbars when using the templates with other people.

I think you'll find an article on distributing templates at word.mvps.org that
may help you sort things out a bit :-)

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail :-)