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.
Professional Development Guidance! Four world-class developers offer start-to-finish guidance for building powerful, robust, and secure applications with Excel. The authors show how to consistently make the right design decisions and make the most of Excel's powerful features. Check out Professional Excel Development today!
Want your shapes to really "pop" off the page? Add a drop shadow to them, as described in this tip.
Discover MoreWant to draw a few simple shapes or lines on your worksheet? It really is simple; here's how to do it.
Discover MoreWhen creating a chart, you may want to adjust the default scaling that Excel applies to an axis. This is relatively easy ...
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