Written by Allen Wyatt (last updated February 1, 2021)
This tip applies to Excel 2007, 2010, 2013, and 2016
Irving created a chart and placed a text box on that chart. He also drew a line on the chart to serve as a reference for users. If he moves the chart, the text box and the line don't move with it. Irving wonders if there is a way to "lock" the text box and the line so that they move whenever he moves the chart.
There are two ways to approach this. First, you may want to consider how you are actually creating the text boxes and lines. If you select the chart before you create them, you'll notice that Excel makes some new tabs available on the ribbon. Click the Format tab, and you'll notice an Insert Shapes group. You can select shapes and lines from these, and they become part of your chart and will move with it. (Use a rectangular shape in lieu of a text box; Excel allows you to add text inside the shape just as you would with a text box.)
If your text box and line are not part of the chart itself—if they can be moved outside the bounds of the chart by dragging them off the chart—then you can "lock" them in position by grouping objects. Follow these general steps:
At this point, all three items are grouped together and they move as a whole. You'll note that, after grouping, there is an "outer" border on the group that is a bit outside the original chart border. It is this outer border you'll need to click to select the group as you move it around.
ExcelTips is your source for cost-effective Microsoft Excel training. This tip (736) applies to Microsoft Excel 2007, 2010, 2013, and 2016.
Program Successfully in Excel! John Walkenbach's name is synonymous with excellence in deciphering complex technical topics. With this comprehensive guide, "Mr. Spreadsheet" shows how to maximize your Excel experience using professional spreadsheet application development tips from his own personal bookshelf. Check out Excel 2013 Power Programming with VBA today!
If you add callouts using the drawing tools in Excel, you may have noticed that they don't always stay where you expect ...
Discover MoreWhen creating a chart based on data in a worksheet, you may want to sort the information in the chart without rearranging ...
Discover MoreCreate a chart on its own worksheet, and you can display it by simply clicking the tab at the bottom of the Excel work ...
Discover MoreFREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."
2022-04-20 02:59:49
Mark
Thanks!! Also works with Windows 11
2021-05-27 05:23:38
C. Redmond
Thanks - Makes sense, but i didnt think about doing it this way!
2019-11-14 10:43:43
NJ
thank you, this is so helpful!
2018-05-22 16:29:46
Himae
Thank you!!!
2017-05-22 04:21:29
DaveS
Gael (& Allen)
Insert Shapes is actually on the Chart Tools - Layout ribbon, NOT the Chart Tools - Format ribbon.
2017-05-22 03:57:57
Gael
I do not see an insert shapes group when I click Format Chart. I see the groups Current Selection, Shape Styles, WordArt Styles, Arrange and Size. There is an Insert group on the Layout tab and includes Shapes. Is this what you are referring to? When I add a shape outside of the chart box it does not move with the chart. It only moves if I put it into the chart box.
Got a version of Excel that uses the ribbon interface (Excel 2007 or later)? This site is for you! If you use an earlier version of Excel, visit our ExcelTips site focusing on the menu interface.
FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."
Copyright © 2023 Sharon Parq Associates, Inc.
Comments