Solved

Macro in the Command Bar

Posted on 2008-10-16
1
308 Views
Last Modified: 2012-05-05
Is there a way to create an icon or text that resides in a Custom command bar that will execute a procedure that is in the code of a document template?  Can I have that code reside in the template code (like in a Module) or does it have to be in the Normal document code?
0
Comment
Question by:HardyDesertDuo
1 Comment
 
LVL 81

Accepted Solution

by:
byundt earned 500 total points
ID: 22737061
 To assign a macro to an icon on a command bar:
  1. Open the View...Toolbars...Customize menu item    
  2. Go to the Commands tab, then select Macros from the pane on the left    
  3. Select the document that contains your macro in the Save In dropdown at the bottom    
  4. Find your macro in the pane on the right    
  5. Drag it up to a toolbar    
  6. Right-click the text and choose Button and Text if you want an icon & text. Choose Default Style if you want just the icon.    
  7. Right-click the icon and choose Change Button Image if you want to pick the icon  
Brad
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I would like to show you some basics you can do with Mailings in MS Word. It´s quite handy feature you can use for creating envelopes, labels, personalized letters etc. First question could be what is this feature good for? Mailing can really he…
Preface: When I started this series, I used the term CommandBars because that is the Office Object class that it discusses. Unfortunately, when Microsoft introduced Office 2007, they replaced the standard Commandbar menus with "The Ribbon" and rem…
This video shows the viewer how to set up and create Footnotes in their document. Click on the References tab: Select "Insert Footnote": Type in desired text:
This video shows where to find templates, what they are used for, and how to create and save a custom template using Microsoft Word.

919 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now