?
Solved

Macro in the Command Bar

Posted on 2008-10-16
1
Medium Priority
?
314 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 2000 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Do you ever need to create a 20 page Word document for some testing purpose? Are you tired of copying & pasting old boring "lorem ipsum" text over and over again, increasing font size and line space in order to make the document 20+ pages long? Look…
Introduction Authors who set out to write any sort of lengthy piece for online submission—be it a long question or comment on a technical form, an article, or a substantial blog entry—often find it useful to work up a draft in an editor other t…
This video shows where to find the word count, how to display it, and what it breaks down to in Microsoft Word.
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…
Suggested Courses

770 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