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

Condensing and Expanding Headings

When working in Outline view, you'll undoubtedly have the need to expand or condense information under your headings. It ...

Discover More

Creating Add-Ins

Want to create your own add-in? Excel makes it easy to do. Here are all the steps you need.

Discover More

Better-Looking Full Justification for Paragraphs

If you want Word to justify paragraphs in the same way that it is done in WordPerfect, you'll want to apply the steps in ...

Discover More

Comprehensive VBA Guide Visual Basic for Applications (VBA) is the language used for writing macros in all Office programs. This complete guide shows both professionals and novices how to master VBA in order to customize the entire Office suite for their needs. Check out Mastering VBA for Office 2010 today!

More ExcelTips (ribbon)

Pasting a Graphic to Multiple Worksheets

Do you need to add a logo or other graphic to a bunch of worksheets? Here are a couple of short macros that can make ...

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

Capturing a Screen

A picture is worth a thousand words, but getting the picture, particularly a screen shot, into a workbook may seem ...

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 six minus 4?

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.