Excel.Tips.Net Welcome toExcel.Tips.Net

Helpful Links

Tips.Net Home
ExcelTips Home
Ask an Excel Question
Make a Comment

Tips.Net Store

ExcelTips FAQ
ExcelTips Premium

Learn Access Now

Beauty Tips
Car Tips
Cleaning Tips
College Tips
Cooking Tips
Excel2007 Tips
ExcelTips
Family Tips
Gardening Tips
Health Tips
Home Tips
Money Tips
Organizing Tips
Pest Tips
Pet Tips
Wedding Tips
Word2007 Tips
WordTips

Advertise on the
ExcelTips Site

Newest Tips

Assigning a Macro to a Keyboard Combination

Creating Scenarios

Using Message Boxes

Understanding Phantom Macros

Picking a Group of Cells

Running Out of Memory

Hiding Rows Based on a Cell Value

 

Formatting the Border of a Legend

Summary: When you create a chart, Excel often includes a legend with the chart. You can format several attributes of the legend's border, as discussed in this tip. (This tip works with Microsoft Excel 97, Excel 2000, Excel 2002, Excel 2003, and Excel 2007.)

When you create a chart in Excel, the Wizard that you follow may create a chart legend, depending on the type of chart you are creating. Normally, the appearance of the legend will be acceptable for the type of chart you are creating. You have complete control, however, over how the legend appears.

One of the elements you can change is the type of border Excel places around the legend. To change the appearance of the legend's border, follow these steps if you are using a version of Excel prior to Excel 2007:

  1. Click once on the legend to select it. Handles should appear around the perimeter of the legend.
  2. Choose Selected Legend from the Format menu. Excel displays the Format Legend dialog box.
  3. Make sure the Patterns tab is selected. (Click here to see a related figure.)
  4. Use the Style drop-down list to select a different border style for the legend.
  5. Use the Color drop-down list to change the color of the border.
  6. Use the Weight drop-down list to specify how heavy the border should appear.
  7. Use the Shadow check box to control if Excel adds a drop-shadow to the legend.
  8. Click on OK.

If you are using Excel 2007, follow these steps instead:

  1. Right-click on the legend to display a Context menu, then select Format Legend. Excel displays the Format Legend dialog box.
  2. Use the Border Color option to change the color of the border.
  3. Use the Border Styles option to select different border styles and weights for the legend.
  4. Use the Shadow option to specify the type of shadow you want applied to the legend.
  5. Click on OK.

ExcelTips is your source for cost-effective Microsoft Excel training. This tip (3197) applies to Microsoft Excel versions: 97 | 2000 | 2002 | 2003 | 2007

Save Time! ExcelTips has been published weekly since late 1998. Past issues of ExcelTips are available in convenient ExcelTips archives. Have your own enhanced archive of ExcelTips at your fingertips, available to use at any time!
 
Check out ExcelTips Archives today!