Microsoft Office Tutorials and References
In Depth Information
RUN A MACRO FROM AN ICON
Copying Icons from Other Offi ce Applications
Rather than create your own icon using the Button editor, as shown in Figure
120, see if another application already has the icon. For example, the idea
for Filter to Selection came from Access. It is likely that Access already has
an icon called Filter to Selection. If so, you can copy the icon from one Offi ce
application to Excel. Follow these steps:
1.
Keep Excel open and open Access (or Word or PowerPoint).
2.
In Access (or Word or PowerPoint), fi nd the Filter to Selection icon, which
appears only when you are viewing a table. Finding the icon might require
a few steps. If you don’t have an Access table, use File, Import to import
an Excel worksheet into a table. Then double-click the table to view it in
Data Sheet mode. The desired icon now appears on the Table Datasheet
toolbar.
3.
Right-click the toolbar and choose Customize.
4.
While the Customize dialog is displayed, right-click the desired icon and
choose Copy Button Image.
5.
Switch back to Excel.
6.
Choose Tools, Customize.
7.
Right-click the desired icon and choose Paste Button Image. A new menu
item is added, with a shortcut key and a professional-looking icon. As shown
in Figure 121, this item looks like it is part of the core Excel product.
Figure 121. A custom but on with
an image copied from Access runs
the macro in the Personal Macro
Workbook.
Summary: Excel 2003 is better than Excel 2007 for adding custom menu
items.
 
Search JabSto ::




Custom Search