VBA to add button to QAT

C

Cresta

Hello

Is there any VBA to add a builtin word button to the Quick Access Toolbar
and not rely on the user doing it. This code will be incorporated into an
addin.

Thanks
 
C

Cresta

I already have an addin to create our Corporate ribbon tabs, but was looking
for a simple way to add the 'Switch Windows' button the QAT (if not already
there) so the user can more easily get to the active document list.
 
S

Stefan Blom

Note also that you can save QAT customizations in a particular template. The
commands added will then be available when you open a document based on that
template.
 
C

Cresta

hello (Further investigation)

I've had a look into the word.qat file which I'm led to believe holds the
xml for the users QAT. Is it not a matter of just adding the following tag to
the xml at the position that the button is to appear (if the tag is not
already present).

<mso:control idQ="mso:WindowSwitchWindowsMenuWord" visible="true"/>
 
S

Stefan Blom

I've never tried editing the QAT, although it certainly looks like you
could, even with a simple text editor.

But note that just adding the necessary commands to a Word template (*.dotx
file) and placing that file in the Startup folder would ensure that the
commands are visible at all times, without messing with the user's Word.qat
file.
 
S

Stefan Blom

Stefan Blom said:
I've never tried editing the QAT, although it certainly looks like you
could, even with a simple text editor.

To clarify, I'm referring to the Word.qat file here.

~~~
Stefan Blom
Microsoft Word MVP
 

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