Please Note: This article is written for users of the following Microsoft Excel versions: 2007, 2010, 2013, 2016, 2019, Excel in Microsoft 365, and 2021. If you are using an earlier version (Excel 2003 or earlier), this tip may not work for you. For a version of this tip written specifically for earlier versions of Excel, click here: Deleting Graphics when Deleting a Row.

Deleting Graphics when Deleting a Row

Written by Allen Wyatt (last updated March 18, 2023)
This tip applies to Excel 2007, 2010, 2013, 2016, 2019, Excel in Microsoft 365, and 2021


Sethuraman has a worksheet where column A contains names, column B contains addresses, and column C contains a photo of the person. If he deletes the row, the photo remains. He wonders how the photo can be deleted at the same time the row is deleted.

This happens because of the way that the properties for the graphics are set up. If the only graphics in the worksheet are those for the people, then start by selecting all the graphics. (Press F5, click Special, select Objects, click OK.) Then, follow these steps to set the properties for all the selected graphics if you are using Excel 2007 or Excel 2010:

  1. Right-click one of the graphics. Excel displays a Context menu.
  2. Choose Size and Properties from the Context menu. Excel displays either the Size and Properties (Excel 2007) or Format Picture (Excel 2010) dialog box.
  3. Make sure the Properties tab is displayed. (See Figure 1.)
  4. Figure 1. The Properties tab of the Format Picture dialog box.

  5. Make sure the Move and Size with Cells check box is selected.
  6. Click OK.

If you are using Excel 2013 or a later version, use the following steps instead:

  1. Right-click one of the graphics. Excel displays a Context Menu.
  2. Choose Size and Properties from the Context Menu. Excel displays the Format Picture task pane at the right side of the screen.
  3. Make sure Properties task option is expanded. (If it isn't—if you can't see anything under the Properties option—click the small triangle to the left of the Properties option.) (See Figure 2.)
  4. Figure 2. The Properties option of the Format Picture task pane.

  5. Make sure the Move and Size with Cells radio button is selected.
  6. Close Format Picture task pane.

ExcelTips is your source for cost-effective Microsoft Excel training. This tip (12258) applies to Microsoft Excel 2007, 2010, 2013, 2016, 2019, Excel in Microsoft 365, and 2021. You can find a version of this tip for the older menu interface of Excel here: Deleting Graphics when Deleting a Row.

Author Bio

Allen Wyatt

With more than 50 non-fiction books and numerous magazine articles to his credit, Allen Wyatt is an internationally recognized author. He is president of Sharon Parq Associates, a computer and publishing services company. ...

MORE FROM ALLEN

Word Count for a Section

Dynamic word counts for your entire document are easy to get when you use using fields. There is no built-in method to ...

Discover More

Changing Limited Relative References to Absolute

Do you need to change whether a particular reference in a formula uses a relative or absolute reference? If so, you may ...

Discover More

Controlling Names of Backup Files

Want to control the name and location of your document backup? Here are some ideas that may help.

Discover More

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!

More ExcelTips (ribbon)

Styles for Lines, Dashes, and Arrows

Create a simple drawing object, and Excel makes some assumptions about how that object should appear. Excel provides a ...

Discover More

Images Pile Up when Filtering

If you have a worksheet that has numerous pictures in a column, you may get an unwanted surprise when you try to filter ...

Discover More

Setting Default Attributes for Lines and Arrows

Don't like the way that Excel formats lines and arrows? You can easily make your own formatting changes, and then use ...

Discover More
Subscribe

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

View most recent newsletter.

Comments

If you would like to add an image to your comment (not an avatar, but an image to help in making the point of your comment), include the characters [{fig}] (all 7 characters, in the sequence shown) in your comment text. You’ll be prompted to upload your image when you submit the comment. Maximum image size is 6Mpixels. Images larger than 600px wide or 1000px tall will be reduced. Up to three images may be included in a comment. All images are subject to review. Commenting privileges may be curtailed if inappropriate images are posted.

What is two more than 7?

There are currently no comments for this tip. (Be the first to leave your comment—just use the simple form above!)


This Site

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.

Newest Tips
Subscribe

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

(Your e-mail address is not shared with anyone, ever.)

View the most recent newsletter.