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
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