18.3. Drawing Shapes
If the stock graphics provided in the clip art collection don't satisfying your inner art critic, you can create your own pictures. With Excel's drawing features, it's actually a lot easier than you might expect. In fact, you can create everything from simple shapes to complex art without leaving your worksheet.
The starting point for all drawing activity is the Drawing toolbar (Figure 18-8). To show the Drawing toolbar, select View Toolbars Drawing. Usually, the Drawing toolbar appears at the bottom of the window, although you can drag it anywhere you like.
When you want to start drawing, head to the Drawing toolbar and click the AutoShapes button. When you click AutoShapes, a menu appears that lets you choose from several shape categories. Each shape category has a range of choices. Some of these shapes are common enough that they merit a separate space on the drawing toolbar. For example, you can insert a circle, square, or line by clicking the shape's toolbar button, without digging through the full AutoShapes list. There are also additional buttons that let you use some special object types, like WordArt (ridiculously fancy text that usually has no place in an Excel worksheet).
|
Before you can really get started drawing anything, you should understand the basic shape categories. They include:
Lines . This category includes straight lines, curved lines, and arrows.
Connectors . This category includes connecting straight and curved lines, with or without arrows. Connecting lines are similar to ordinary lines, but they automatically "snap" to the connection points of other shapes. For example, if you want to make a flowchart diagram that has two connected square shapes, it's easier to use a connector than an ordinary line.
Basic Shapes . This category includes geometric shapes like the square, circle, rectangle, octagon, and more. Leave it to Microsoft to also include not-so-basic shapes like rings, lightning bolts, suns, moons, and even a happy face.
Block Arrows . This category includes a variety of one-way and two-way arrows, as well as shapes with arrows attached to them.
Flowchart . This category includes shapes that are often used in flowcharts, like the rectangle (which represents a step in a process) and the diamond (which represents a decision).
Stars and Banners . This category includes the common five-pointed star and other starburst shapes. It also includes different types of banners, like award strips and unfurled scrolls . These shapes look best if you put some text inside them.
Callouts . Callouts are designed to add information to a worksheet. Most Excel callouts are shapes with a connected line. The line points at something important, and the shape contains any descriptive text you want to write.
More AutoShapes . If you select this category, Excel opens the Clip Art task in the Task Pane. It also preloads a list of unusual shapes in the search results list. You can browse these thumbnails to find a striking AutoShape that interests you.
Excel lets you draw a wide range of shapes, from simple lines and circles, to banners and three-dimensional arrows. To insert a new shape, follow these steps:
Click the AutoShapes button (Figure 18-9).
Choose a shape category, and then a shape.
Drag on the worksheet to create the shape.
Usually, Excel inserts the image as soon as you release the mouse button. However, some shape types, like the curved line or freeform line, have an extended drawing mode. With these shapes, every time you click the worksheet, Excel adds a new curved line segment. When you want to finish the drawing, you need to double-click the last point.
Click the Fill Color button to choose a color for your shape.
Fill Color applies color to all shapes except for lines. You can also choose "No Fill" to make the shape transparent so that other shapes (and your worksheet data) show through. For example, you can use a circle with no fill to point out some important data on your worksheet.
Click the Line Color button to choose a color for your shape's outline.
To select a Line Color, make sure you click the drop-down arrow at the right-side of the Line Color button. This displays a list of colors. If you click any other part of the button, Excel just applies the color you used the last time.
|
If you want to further refine your line style, use the Line Style, Dash Style, and Arrow Style buttons.
These buttons let you create thick, thin, or dotted outlines around a shape.
Finish off your shape with an optional effect using the Shadow Style or 3-D Style button.
Different 3-D styles extend the shape in different directions and varying amounts of depth. Not every shape supports the 3-D effect, although most do. If a shape doesn't support this effect, the 3-D options are disabled.
Now that your shape is perfected, you can drag it to the position you want, and then resize it.
When you select a drawing, Excel not only displays the usual resize handles, but it also gives you one or more yellow diamonds and a green circle, as shown in Figure 18-10. You can drag the green circle to rotate the image. You can use the yellow diamonds to change the proportions on the shape. For example, you can change the amount of curve in a curved banner, the width of each point in a star, or the length of a line in a callout. As you drag, Excel display a dotted outline to indicate how the shape will change.
|
Up To Speed The Easiest Way to Select a Shape |
You can select a shape at any time to change its appearance. But in some cases, it might be difficult to click the shape you want. For example, if you don't click exactly on a line, you'll end up selecting the worksheet cell underneath the line. To make this process easier, click the Select Objects button (which looks like a mouse pointer) at the left edge of the Drawing toolbar. Now, when you click anywhere on the worksheet, you'll select only shapes, not cells . If you want to access your worksheet data again, click Select Objects a second time to revert to Excel's normal mode. When you click Select Objects, you gain another benefityou can easily select more than one shape at once. Just click somewhere on your worksheet and drag. As you drag, Excel draws a dotted line to show you the selection area. When you release the mouse button, Excel selects all the shapes in your area. You can now apply a change (like applying a new fill color) to all the objects at the same time. You can even cut and paste all the selected shapes, or clear the shapes from your worksheet by pressing the Delete key. |
You can add text to any of Excel's AutoShape objects. It doesn't matter whether you've got a circle, a box, an arrow, a banner, a starburst, or even something weird. You can always add text inside the shape, and this text will wrap itself to fit neatly inside. Figure 18-11 shows a few examples.
|
To add text to a shape, follow these steps:
Click to select the shape.
The drawing's resize handles appear.
Click the Text Box button on the Drawing toolbar.
The button contains a tiny A drawn in the upper left-hand corner of a miniature document.
Click the shape, and wait for a moment.
A hatched border appears around the drawing.
Type the text you want to use.
Select the text. Now, click the Font Color button on the drawing toolbar to change the color to what you want.
You can also apply bold and italic formatting, and change the font and font size using the drop-down lists in the Formatting toolbar.
If you add enough shapes, you may start to run into trouble manipulating and layering all these different objects. For example, what if you want to put a starburst shape inside a circle? Depending on the order in which you've added the shapes, when you move the starburst over the circle, it might actually disappear underneath the circle. Fortunately, Excel lets you control this behavior with layering .
Technically, each image on your worksheet exists in its own private layer. Whenever you add a new shape, Excel creates a new layer at the top of your worksheet and puts the new shape in this layer. To change the order in which objects are layered, right-click a shape. Then, select Order from the pop-up menu, and choose one of these ordering options:
Bring to Front . This option puts the image on the very top-most layer. It obscures anything underneath it.
Send to Back . This option puts the image on the bottom-most layer. If there are any other shapes in the same position, they obscure this image.
Send Backward . This option moves the image one layer down. This command is important if you want to adjust the layering of more than two objects. For example, if you have a picture of a flag and piece of pie overlapping, and you want to send the flag to the back so the piece of pie appears on top, Send Backward is the way to go.
Bring Forward . This option moves the image one layer down. This command is important if you want to adjust the layering of more than two objects.