Solved

Macro in the Command Bar

Posted on 2008-10-16
1
311 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

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

When creating Microsoft Word-based forms there may be a need to have a form field repeated throughout the whole document. For instance, with a company name, you may want this information repeated automatically throughout the document rather than man…
Using Word 2013, I was experiencing some incredible lag when typing.  Here's what worked for me....
This video shows and describes the main difference between both orientations in Microsoft Word. Viewers will understand when to use each orientation and how to get the most out of them.
This video walks the viewer through the process of creating Hyperlinks for the web and other documents. Select the "Insert" tab: Click "Hyperlink":  Type "http://" followed by a web address to reference a website or navigate to a document to ref…

733 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