Hi Carmen,
Open your template;
From the main Word Window hit ALT-F11;
The Visual Basic Editor (VBE) window will open;
In the VBE window you should see a project pane on the left and a main code
window to the right,
Make sure your document is active in the project pane (The tree view under
Project(Your document name) should be displayed, if not, click on the little
"+" next to it);
Right click Project(Your document name) and select Insert > Module;
Module1 should be added to your project;
Paste the code I posted in the code window (make sure that Module1 is
selected in the project pane first by double clicking on it);
Close the VBE window;
Save your template;
From the menu Tools choose Customize...;
Select the Toolbar tab;
Click on New;
Give a name to your toolbar;
It will appear floating on the screen, empty;
Dock it under the other toolbars at the top of the screen (click and drag);
Select the Commands tab in the customization dialog;
In the Categories section, scroll down to Macros;
In the Commands section on the right, scroll down to find the macros you
have just pasted (Project.Module1.Sel_Bold, etc.)
Select the first one of those, click and hold on its name, drag it to the
new toolbar you have just created;
Right click on the button you just have created and change its name to
something you like in the Name area and hit Enter;
Repeat for the other 2 macros (Project.Module1.Sel_Underline,
Project.Module1.Sel_Italic);
You will end up with a toolbar with 3 buttons on it;
If you prefer, you could have a dropdown type of menu with the three buttons
under that one dropdown button, for that, instead of placing the buttons
next to each other, before placing the three macros on the toolbar, scroll
to the end of the Categories section, you will see New menu, select it, in
the command section there will be only one item, drag it to your toolbar,
right click it to change its name, add the three buttons under that.
Try all this, when you have it working to your satisfaction, write back and
we will see what we can do about the bullets! (For that, you have to be
familiar with Paragraph styles... are you?)
HTH
--
Cheers!
_______________________________________
Jean-Guy Marcil - Word MVP
(e-mail address removed)
Word MVP site:
http://www.word.mvps.org
Carmen Perez said:
Thanx very much Jean Guy,
That looks exactly what I want (I would also like the possibility of
bullets). Now, next questions are "where do I put that code?" and "some
hints as to how to create that tool bar?" (Ithink I saw a link to a good web
page somewhere in MVP web site?)