Toolbar in Add-inn visible when a specific template is open

P

Peter Faulhaber

Hi All,

As default an add-inn is open when Word starts. In the add inn a toolbar is
visible=false. When the user open a specific template (Proposal template) in
Word the toolbar in the Add-inn must be visible. Anyone any idea?

The VBA code in the Proposal template can't be changed.
 
J

Jezebel

In your add-in, trap the document new and document open events; check if the
new/opened document has your proposal as the attached template; and if so
make the toolbar visible.
 
Top