Link to home
Start Free TrialLog in
Avatar of Jon Kotman
Jon KotmanFlag for United States of America

asked on

Distribute Word Toolbar

I have created a custom Word Toolbar which is saved in a Word Template.  I would like to distribute this to the rest of my office and have it load when they open word.  I really do not want to modify the normal template because we have many applications which when updated replace this file.  I would assume there is a way that it can be loaded when Word opens.
Thx,
Jon
Avatar of jpeca
jpeca
Flag of Serbia image

On event Workbook_Activate you can check if toolbar exist
Set myBar= Application.CommandBars("MyToolbar")
If Not myBar Nothing  "hen ' Toolbar Exist
   myBar.Visible = True
  ...
If toolbar does not exist you can You can create Toolbar with VBA code see:  http://scriptorium.serve-it.nl/view.php?sid=14.

On even Workbook_Deactivate  hide your toolbar
  Application.CommandBars("MyToolbar").Visible = False
ASKER CERTIFIED SOLUTION
Avatar of GrahamSkan
GrahamSkan
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial