Chapter 22. Enhancing Your Work with Pictures and Drawings

<feature><title>In This Chapter</title> </feature>

When it comes to visual presentation, Excel has a lot more up its sleeve than charts. As you may know, you can insert a wide variety of graphics into your worksheet to add pizzazz to an otherwise boring report.

This chapter describes the non-chart-related graphic tools available in Excel. These tools consist of Shapes, SmartArt, WordArt, and imported or pasted images. In addition to enhancing your worksheets, you’ll find that working with these objects can be a nice diversion. When you need a break from crunching numbers, you might enjoy creating an artistic masterpiece using Excel’s graphic tools.

Using Shapes

Microsoft Office, including Excel, provides access to a variety of customizable graphic images known as Shapes. You can add a Shape to a worksheet’s draw layer by selecting a Shape using the Insert Using Shapes Illustrations Using Shapes Shapes gallery, shown in Figure 22.1. The Shapes are organized into categories, and the category at the top displays the Shapes that you’ve used recently.

The Shapes gallery.

Figure 22.1. The Shapes gallery.

Inserting a Shape

To insert a Shape on a worksheet, just click the Shape in the Shapes gallery and then click in the worksheet. A default-sized shape is added to your worksheet. Alternatively, you can click the Shape and then drag it in the worksheet to create a larger or smaller Shape. When you release the mouse button, the object is selected, and its name appears in the Name box (as shown in Figure 22.2).

This Shape was drawn on the worksheet. Its name (Quad Arrow 1) appears in the Name box.

Figure 22.2. This Shape was drawn on the worksheet. Its name (Quad Arrow 1) appears in the Name box.

Tip

You can also insert a Shape into a chart. Just select the chart before you choose the Shape from the gallery and then click inside of the chart to insert the Shape. When a chart is selected, the Chart Tools context tab also displays an icon to access the Shape gallery: Chart Tools Tip Layout Tip Insert Tip Shapes.

A few of the Shapes require a slightly different approach. For example, when adding a FreeForm Shape (from the Lines category), you can click repeatedly to create lines. Or click and drag to create a nonlinear shape. Double-click to finish drawing and create the Shape. The Curve and Scribble Shapes (in the Lines category) also require several clicks while drawing.

Following are a few tips to keep in mind when creating Shapes:

  • Every Shape has a name. Some have generic names like Shape 1 and Shape 2, but others are given more descriptive names (for example, Rectangle 1). To change the name of a Shape, select it, type a new name in the Name box, and press Enter.

  • To select a specific shape, type its name in the Name box and press Enter.

  • When you create a Shape by dragging, hold down the Shift key to maintain the object’s default proportions.

  • You can control how objects appear on-screen in the Advanced tab of the Excel Options dialog box (choose Office Tip Excel Options). This setting appears in the section labeled Display Options for This Workbook. Normally, the All option is selected under For Objects Show. You can hide all objects by choosing Nothing (Hide Objects). Hiding objects may speed things up if your worksheet contains complex objects that take a long time to redraw.

Adding text to a Shape

Many of the Shape objects can display text. To add text to such a Shape, select the Shape and start typing the text.

To change the formatting for all of the text in a Shape, Ctrl+Click the Shape object. You can then use the formatting commands on the Home tab of the Ribbon. To change the formatting of specific characters within the text, select only those characters, and use the Ribbon buttons or the Mini toolbar.

In addition, you can dramatically change the look of the text by using the tools in the Drawing Tools Adding text to a Shape Format Adding text to a Shape WordArt Styles group.

Formatting Shapes

When you select a Shape, Excel displays its Drawing Tools Formatting Shapes Format context tab, with the following groups of commands:

  • Insert Shapes: Insert new Shapes; change a Shape to a different Shape.

  • Shape Styles: Change the overall style of a Shape; modify the Shape’s fill, outline, or effects.

  • WordArt Styles: Modify the appearance of the text within a Shape.

  • Arrange: Adjust the “stack order” of Shapes, align Shapes, group multiple Shapes, and rotate Shapes.

  • Size: Change the size of a Shape.

Many of the commands that are available in the Ribbon are also available in the Shape’s shortcut menu, which you access by right-clicking the Shape. In addition, you can use your mouse to perform some operations directly (for example, resize or rotate a Shape).

Figure 22.3 shows a worksheet with some Shapes that use various types of formatting.

A variety of Shapes.

Figure 22.3. A variety of Shapes.

As an alternative to the Ribbon, you can use the Format Shape dialog box. Right-click the Shape and select Format Shape from the shortcut menu. You’ll get a stay-on-top tabbed dialog box that contains some additional formatting options that aren’t on the Ribbon.

I could probably write 20 pages about formatting Shapes, but it would be a waste of paper and certainly not a very efficient way of learning about Shape formatting. The best way, by far, to learn about formatting Shapes is to experiment. Create some shapes, click some commands, and see what happens. The commands are fairly intuitive, and you can always use Undo if something unexpected happens.

Grouping objects

Excel lets you combine two or more Shape objects into a single object. This feature is known as grouping. For example, if you create a design that uses four separate Shapes, you can combine them into a group. Then you can manipulate this group as a single object (move it, resize it, and so on).

To group two or more objects, press Ctrl while you click the objects to be included in the group. Then right-click and choose Group Grouping objects Group from the shortcut menu.

When objects are grouped, you can still work with an individual object in the group. Click once to select the group; then click again to select the object.

To ungroup a group, right-click the group object and choose Group Grouping objects Ungroup from the shortcut menu. This command breaks the object into its original components.

Aligning and spacing objects

When you have several objects on a worksheet, you may want to align and evenly space these objects. You can, of course, drag the objects with your mouse (which isn’t very precise). Or, you can use the keyboard arrow keys to move a selected object one pixel at a time. The fastest way to align and space objects is to let Excel do it for you.

To align multiple objects, start by selecting them (press Ctrl and click the objects). Then use the tools in the Drawing Tools Aligning and spacing objects Format Aligning and spacing objects Arrange Aligning and spacing objects Align drop-down control.

Note

Unfortunately, you can’t specify which object is used as the basis for the alignment. When you’re aligning objects to the left (or right), they’re always aligned with the leftmost (or rightmost) object that’s selected. When you’re aligning objects to the top (or bottom), they’re always aligned with the topmost (or bottommost) object. Aligning the centers (or middles) of objects will align them along an axis halfway between the left and right (or top and bottom) extremes of the selected shapes.

You can instruct Excel to distribute three or more objects so that they’re equally spaced horizontally or vertically. Use the Drawing Tools Note Format Note Arrange Note Align drop-down control and select Distribute Horizontally or Distribute Vertically.

Reshaping Shapes

Excel has many Shapes to choose from, but sometimes the Shape you need isn’t in the gallery. In such a case, you may be able to modify one of the existing shapes using one of these techniques:

  • Rotate the Shape: When you select a Shape, it displays a small green dot. Click and drag this dot to rotate the Shape.

  • Group multiple Shapes: You may be able to create the Shape you need by combining two or more Shapes and then grouping them (see “Grouping objects,” earlier in this chapter).

  • Reconfigure the Shape: Many of the Shapes display one or more small yellow diamonds when the Shape is selected. You can click and drag this diamond to change the Shape’s outline. The exact behavior varies with the AutoShape, so you should experiment and see what happens. Figure 22.4 shows an up-down arrow, before and after changing its shape (this particular shape has two yellow diamonds).

    A Shape, before and after being modified.

    Figure 22.4. A Shape, before and after being modified.

  • Create a Freeform Shape: Select the Freeform Shape (in the Lines category of the Shapes gallery) to create custom Shape. Figure 22.5 shows a Freeform Shape, with eyes and a mouth added. I applied the Perspective effect to create the shadow.

    When none of the existing Shapes will do, create your own Freeform Shape.

    Figure 22.5. When none of the existing Shapes will do, create your own Freeform Shape.

  • Convert an existing Shape to a Freeform Shape: If an existing Shape is close to what you want, convert it to a Freeform Shape and then edit its points. Select the Shape and choose Drawing Tools Convert an existing Shape to a Freeform Shape: Format Convert an existing Shape to a Freeform Shape: Insert Shapes Convert an existing Shape to a Freeform Shape: Edit Shape Convert an existing Shape to a Freeform Shape: Convert To Freeform. Then, with the Shape still selected, choose Drawing Tools Convert an existing Shape to a Freeform Shape: Format Convert an existing Shape to a Freeform Shape: Insert Shapes Convert an existing Shape to a Freeform Shape: Edit Shape Convert an existing Shape to a Freeform Shape: Edit Points. You can then drag the points to reconfigure the Shape.

Printing objects

By default, objects are printed along with the worksheet. To avoid printing a Shape, right-click the Shape and choose Size And Properties. In the Size And Properties dialog box, select the Properties tab and remove the check mark from the Print Object check box.

Using SmartArt

Excel’s Shapes are certainly impressive, but the SmartArt feature is downright amazing. Using SmartArt, you can insert a wide variety of highly customizable diagrams into a worksheet, and you can change the overall look of the diagram with a few mouse clicks. This Office 2007 feature is probably more useful for PowerPoint users, but I think many Excel users will find a need for SmartArt.

New Feature

SmartArt is new to Excel 2007.

Inserting SmartArt

To insert SmartArt into a worksheet, choose Insert Inserting SmartArt SmartArt. Excel displays the dialog box shown in Figure 22.6. The diagrams are arranged in categories along the left. When you find one that looks appropriate, click it for a larger view in the panel on the right, which also provides some usage tips. Click OK to insert the graphic.

Inserting a SmartArt graphic.

Figure 22.6. Inserting a SmartArt graphic.

Note

Don’t be concerned about the number of elements in the SmartArt graphics. You can customize the SmartArt to display the number of elements you need.

Figure 22.7 shows a SmartArt diagram, after I customized it and added text. When you insert or select a SmartArt diagram, Excel displays its SmartArt Tools context tab, which provides many customization options.

This SmartArt shows a simple organizational chart.

Figure 22.7. This SmartArt shows a simple organizational chart.

Customizing SmartArt

Figure 22.8 shows a SmartArt graphic (from the Process category) immediately after I inserted it into a worksheet. The Type Your Text Here window makes it very easy to enter text into the elements of the image. If you prefer, you can click one of the [Text] areas in the image and type the text directly.

This SmartArt needs to be customized.

Figure 22.8. This SmartArt needs to be customized.

Figure 22.9 shows the SmartArt after I added some text.

The SmartArt now has text.

Figure 22.9. The SmartArt now has text.

This particular diagram depicts two items combining into a third item. Suppose that your boss sees this graphic and tells you that you need a third item: Advanced Technology. To add an element to the SmartArt graphic, just select an item and choose SmartArt Tools The SmartArt now has text. Design The SmartArt now has text. Create Graphic The SmartArt now has text. Add Shape. Or you can just select an item and press Enter. Figure 22.10 shows the modified SmartArt.

The SmartArt, after adding a new element.

Figure 22.10. The SmartArt, after adding a new element.

When working with SmartArt, keep in mind that you can move, resize, or format individually any element within the graphic. Select the element and then use the tools in the SmartArt Tools The SmartArt, after adding a new element. Format tab.

Changing the layout

You can easily change the layout of a SmartArt diagram. Select the object and then choose SmartArt Tools Changing the layout Design Changing the layout Layouts. Any text that you’ve entered remains intact. Figure 22.11 shows a few alternate layouts for the previous example.

A few different layouts for the SmartArt.

Figure 22.11. A few different layouts for the SmartArt.

Changing the Style

Once you decide on a layout, you may want to consider other styles or colors available in the SmartArt Tools Changing the Style Design Changing the Style SmartArt Styles group. Figure 22.12 shows the diagram after you choose a different style and changing the color.

A few mouse clicks changed the style of this diagram.

Figure 22.12. A few mouse clicks changed the style of this diagram.

Tip

The SmartArt styles available vary, depending on the document theme assigned to the workbook. To change a workbook’s theme, choose Page Layout Tip Themes. Switching to a different theme can have a dramatic impact on the appearance of SmartArt diagrams.

Learning more about SmartArt

This section provided a basic introduction to SmartArt. The topic is complex enough to deserve an entire book, but I think most users can master SmartArt simply by experimenting with the commands.

Using WordArt

WordArt has been available in previous versions of Excel, but this feature has gotten a well-needed facelift in Excel 2007. You can use WordArt to create graphical effects in text. Figure 22.13 shows a few examples of WordArt.

WordArt examples.

Figure 22.13. WordArt examples.

To insert a WordArt graphic on a worksheet, choose Insert WordArt examples. WordArt and then select a style from the gallery. Excel inserts an object with the text “Your text here.” Replace that text with your own, resize it, and apply other formatting if you like.

When you select a WordArt image, Excel displays its Drawing Tools context menu. Use the controls to vary the look of your WordArt.

Note

The controls in the Drawing Tools Note Format Note Shape Styles group operate on the shape that contains the text, not the text. If you want to apply text formatting, use the control in the Drawing Tools Note Format Note WordArt Styles group. You can also use some of the standard formatting controls on the Home tab or the Mini toolbar. In addition, right-click the WordArt and select Format Text Effects for more formatting options.

Working with Other Graphic Types

Excel can import a wide variety of graphics into a worksheet. You have several choices:

  • Use the Clip Art task pane to locate and insert an image.

  • Import a graphic file directly.

  • Copy and paste an image using the Windows Clipboard.

About graphics files

Graphics files come in two main categories: bitmap and vector (picture). Bitmap images are made up of discrete dots. They usually look pretty good at their original size, but often lose clarity if you increase the size. Vector-based images, on the other hand, are comprised of points and paths that are represented by mathematical equations, so they retain their crispness regardless of their size. Examples of common bitmap file formats include BMP, PNG, JPG, and GIF. Examples of common vector file formats include CGM, WMF, and EPS.

You can find thousands of graphics files free for the taking on the Internet. Be aware, however, that some graphic files have copyright restrictions.

Caution

Using bitmap graphics in a worksheet can dramatically increase the size of your workbook, resulting in more memory usage and longer load and save times.

Using the Clip Art task pane

The Clip Art task pane is a shared program that is also accessible from other Microsoft Office applications. Besides providing an easy way to locate and insert images, the task pane lets you insert sound and video files. This tool also gives you direct access to Microsoft’s Design Gallery Live on the Web.

Display the Clip Art task pane by choosing Insert Using the Clip Art task pane Clip Art. You can search for clip art by using the controls at the top of the task pane. Figure 22.14 shows the task pane, along with the thumbnail images resulting from a search for “banjo”. To insert an image into the active worksheet, just double-click the thumbnail. For additional options, right-click the thumbnail image.

Use the Excel task pane to search for clip art and other multimedia files.

Figure 22.14. Use the Excel task pane to search for clip art and other multimedia files.

You may prefer to use the Microsoft Clip Organizer to access image files. Clip Organizer is essentially a stand-alone version of the Clip Art task pane. To display the Clip Organizer, click the Organize Clips hyperlink at the bottom of the task pane. Figure 22.15 shows the Microsoft Clip Organizer.

Microsoft Clip Organizer.

Figure 22.15. Microsoft Clip Organizer.

You can also add new files to the Clip Organizer. You may want to do so if you tend to insert a particular graphic file (such as your company logo) into your worksheets quite often.

If you can’t find a suitable image, you can go online and browse through the extensive clip art at Microsoft’s Clip Gallery Live Web site. Click the Clip Art On Office Online hyperlink (at the bottom of the task pane), and your Web browser will be activated, at which point you can view the images (or listen to the sounds) and add those you want to your Clip Organizer.

Inserting graphics files

If the graphic image that you want to insert is available in a file, you can easily import the file into your worksheet. Choose Insert Inserting graphics files Picture. Excel displays its Insert Picture dialog box, which enables you to browse for the file.

When you insert a picture on a worksheet, you can modify the picture in a number of ways by choosing Picture Tools Inserting graphics files Format context tab. This tab appears automatically when you select a picture object. For example, you can adjust the color, contrast, and brightness. In addition, you can add borders, shadows, reflections, and so on—similar to the operations available for Shapes.

Don’t overlook the Picture Tools Inserting graphics files Format Inserting graphics files Picture Styles group. These commands can transform your image in some very interesting ways. Figure 22.16 shows various styles for a picture.

Displaying a picture in a number of different styles.

Figure 22.16. Displaying a picture in a number of different styles.

Copying graphics by using the Clipboard

In some cases, you may want to use a graphic image that’s not stored in a separate file or is in a file that Excel can’t import. For example, you may have an obscure drawing program that uses a file format that Excel doesn’t support. You may be able to export the file to a supported format, but it may be easier to load the file into the drawing program and copy the image to the Clipboard (using that program’s Edit Copying graphics by using the Clipboard Copy command). Then you can activate Excel and paste the image to the drawing layer by choosing Home Copying graphics by using the Clipboard Clipboard Copying graphics by using the Clipboard Paste.

Suppose that you see a graphic displayed on-screen, but you can’t select it—it may be part of a program’s logo, for example. In this case, you can copy the entire screen to the Clipboard and then paste it into Excel. To copy all or part of the screen, use the following keyboard commands:

  • PrintScreen: Copies the entire screen to the Clipboard.

  • Alt+PrintScreen: Copies the active window to the Clipboard.

Most of the time, you don’t want the entire screen—just a portion of it. The solution is to crop the image by choosing Picture Tools Taking Pictures of Ranges Format Taking Pictures of Ranges Size Taking Pictures of Ranges Crop. This command adds cropping marks to the corners of the image. Just drag the cropping marks to crop the image.

Displaying a worksheet background image

If you want to use a graphic image for a worksheet’s background (similar to wallpaper on the Windows desktop), choose Page Layout Displaying a worksheet background image Page Setup Displaying a worksheet background image Background and select a graphics file. The selected graphics file is tiled on the worksheet. Unfortunately, worksheet background images are for on-screen display only. These images do not appear when the worksheet is printed.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset