Custom Toolbar Editing Word 2002 & Migration to 2007

B

Barbara Pease

We previously had templates written that included a custom toolbar with a
drop down list for personal letterhead. I have found the letterhead macro
and have been able to edit it (Global.dot), but I do not see the toolbar
macro or where in the macro the toolbar is referenced in order to edit the
drop down list. Can anyone help me? The people who wrote the script have
resigned and given us absolutely no instruction on how they developed the
macros, etc.
 
Z

zkid

The toolbar may very well be included in global.dot. There are two ways to
include a toolbar: (1) create it programmically every time a macro runs, or
(2) hard code it as part of the macro template. Any easy way to determine
this is to go into tools, templates and add-ins, then unclick the reference
to global.dot and exit tools. If the toolbar disappeared, it is indeed hard
coded in global.dot.

If not, it's probably either in the normal template or in a separate
template located in the Office startup directory:

For Office 2000:
C:\Program Files\Microsoft Office\Office\Startup

XP/2002 = Office10

2003 = Office11

The normal template should be located here:

C:\Documents and Settings\[username]\Application Data\Microsoft\Templates
 
J

Jonathan West

Barbara Pease said:
We previously had templates written that included a custom toolbar with a
drop down list for personal letterhead. I have found the letterhead macro
and have been able to edit it (Global.dot), but I do not see the toolbar
macro or where in the macro the toolbar is referenced in order to edit the
drop down list. Can anyone help me? The people who wrote the script have
resigned and given us absolutely no instruction on how they developed the
macros, etc.

It probably isn't in a macro, but built into the template itself, either as
a custom toolbar or as an addition to the menu bar.

You can change some things about a custom toolbar through the Tools
Customize dialog. But there are some things that ou can't do, and for which
you may have to write yourself a bit of VBA code to manipulate the
CommandBars collection. Once you have it right, you only need to run the
code once and then save global.dot with the changes included.
 
Z

zkid

Thanks, Jonathan, for clarifying my lingo. What I meant by hard-coded is
that the template is saved in the global.dot template as a custom toolbar and
not created with vba code. If that is the case, then to revise it, with the
global.dot file on the screen, select Tools, Customize. This will provide
you revision access to the custom toolbar. However, we have no idea what it
is that you wish to accomplish after that.
 
B

Barbara Pease

Ok, it does appear to be hard coded - or built into the Global.dot file.
There is a file called Global.dot in a templates file on our server which
looks to have been edited around the same time we last had a change in
personnel. This file is also located in my Word\Startup file (same name,
date and size). And, I assume this is located in each users Startup file.

When I try and open the file, it just opens a blank Document ##. I will try
again signed on as administrator and see if I can edit it then.

What I am trying to do is: we have a drop down list of macros for
individual letterheads. (I have found the letterhead macro and been able to
modify that to add people, etc.) What I cannot seem to find is how I change
the actual drop down list to remove and add people's letterheads.
 
B

Barbara Pease

I went ahead and signed in as administrator and tried again to edit the
global.dot. I was unable to edit the custom toolbar through Tools,
Customize. I did look in the available references for the file and found
Visual Basic for Applications, Microsoft Word 10.0 Object Library, OLE
Automation and Microsoft Office 10.0 Object Library all check in that order.
The two Microsoft entries pointed to different files. Is that at all
helpful? I also found a Template Project (A20MSW10) which was uneditable.
Could that be the culprit? Or is that an Avery Label template?
 
Z

zkid

Hi Barbara,

It's a little tricky to open template files. If you do so straight from
within Word, it should open the actual file itself (global.dot should appear
in the upper left-hand corner). If you open it through Windows Explorer, you
must right click and choose Open instead of double-clicking on the file name;
otherwise, it just opens up a document based on the template (thus, the empty
doc #).

I do believe your situation requires editing the custom toolbar. I see no
reason why you wouldn't be able to revise it with tools, customize. Once
you get to tools, customize, with the customize window open, simply left
click once on the menu item (it should not be surrounded by a little black
rectangle) and it's drop down contents should expand. Now you can drag off
the unneeded entries.

To add entries, however, you need to link the entry to the correct macro.
I'm assuming that the letterhead macro is also located in the Office startup
directory? Otherwise, I don't see how it would be accessed by global.dot's
toolbar. Is the toolbar actually in the letterhead macro template?

Here are some good articles for you to read:
http://www.geekgirls.com/wp_wordprocessing_toolbars.htm
http://www.learnthat.com/computers/learn-374-word_xp_toolbars.htm
http://word.mvps.org/FAQs/Customization/AsgnCmdOrMacroToToolbar.htm
 

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