Word Temp CmdBtns are Permanent

G

Greg Fox

After experimenting with Office CommandBars/CommandButtons
in Outlook and Word I have concluded that the "Temporary" parameter
in CommandBar.Controls.Add() has no effect in WordXP. The command
buttons remain permanently (always).

Details:
1. When adding a temp CmdButton to an OL inspector (but not the Word Mail
Editor) it works as advertised.
2. When adding same to OL inspector (with Word Email editor) the button
remains permanently. Also, you cannot use a button icon - probably because
of the picture interface not being marshalled between OL and Word.
3. When adding same to Word cmd bar the button also remains permanently
4. In this case: button added to "Standard" toolbar - did not try with
others; did not try with Office2003; this is with VB6sp5 on WinXP in a COM
AddIn.

Don't need a fix - worked around by making it invisible when not needed.
Posting FYI
 
C

Cindy M -WordMVP-

Hi Greg,
After experimenting with Office CommandBars/CommandButtons
in Outlook and Word I have concluded that the "Temporary" parameter
in CommandBar.Controls.Add() has no effect in WordXP. The command
buttons remain permanently (always).
This is well-known... :)

Cindy Meister
 
G

Greg Fox

I should have known! Spent time searching for
info on it and came up dry. Thanks for telling me.
 

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