Solved

Macro in the Command Bar

Posted on 2008-10-16
1
310 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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

Like many others, we try and discourage users from printing documents unnecessarily and instead send or share them electronically. However, this doesn't always work and documents are still printed. With this simple solution, if the user tries to …
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…
This video teaches the viewer how to align pictures around text while keeping the text properly aligned in the document.
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…

828 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