Written by Allen Wyatt (last updated June 11, 2022)
This tip applies to Excel 97, 2000, 2002, and 2003
The graphics features of Excel allow you to add a number of predefined shapes to a workbook. These shapes, called AutoShapes, cover a wide range of needs. If you want to add shapes to the AutoShapes feature, however, you are out of luck. The shapes are apparently hard-coded into Excel, and cannot be modified.
You can, however, add shapes to the Clip Gallery. If you format the shapes as WMF files, they are easy to add and easy to place within a worksheet. For instance, if you have a number of different flowchart symbols that you want to make available in Excel, all you need to do is save each symbol in the WMF format, and then import them into the Clip Gallery. (To save graphics in the WMF format, you will need to use a specialized graphics program, such as Paint Shop Pro or Corel Draw.)
If you don't want to use the Clip Gallery for some reason, you can simulate your own AutoShapes through a combination of macros and graphics in a hidden worksheet. The following general steps detail how to do this for a series of twenty flowchart symbols. The steps assume that you are reasonably comfortable writing macros and customizing toolbars.
Sub AddFlowObj1() ThisWorkbook.Sheets(1).Shapes("FlowObj1").Copy ActiveSheet.Paste End Sub
Private Sub Workbook_Open() Application.CommandBars("MyShapes").Visible = True End Sub
Private Sub Workbook_BeforeClose(Cancel As Boolean) Application.CommandBars("MyShapes").Delete End Sub
Note:
ExcelTips is your source for cost-effective Microsoft Excel training. This tip (1995) applies to Microsoft Excel 97, 2000, 2002, and 2003.
Comprehensive VBA Guide Visual Basic for Applications (VBA) is the language used for writing macros in all Office programs. This complete guide shows both professionals and novices how to master VBA in order to customize the entire Office suite for their needs. Check out Mastering VBA for Office 2010 today!
Need to make sure that someone cannot delete a graphic in a worksheet? The ability to protect the graphic depends on ...
Discover MoreNeed a chart that uses two lines for axis labels? It's easy to do if you know how to set up your data in the worksheet, ...
Discover MoreNeed to change the color of different parts of your chart? It's easy to do when you apply the technique described in this ...
Discover MoreFREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."
There are currently no comments for this tip. (Be the first to leave your comment—just use the simple form above!)
Got a version of Excel that uses the menu interface (Excel 97, Excel 2000, Excel 2002, or Excel 2003)? This site is for you! If you use a later version of Excel, visit our ExcelTips site focusing on the ribbon interface.
FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."
Copyright © 2024 Sharon Parq Associates, Inc.
Comments