Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Fixed Object in Excel: How to Lock Images and Shapes

· 6 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

To fix an object in Excel so that it does not move or resize when you adjust columns and rows, you must change its properties to "Don't move or size with cells." This ensures that images, shapes, text boxes, or charts remain in a static position on your worksheet regardless of how you manipulate the surrounding grid. This is essential for creating professional dashboards, maintaining the position of a company logo, or keeping instructional diagrams visible while you modify data tables.

What You'll Need

  • A computer with Microsoft Excel installed (Windows or macOS).
  • An existing Excel workbook containing the object you wish to fix (such as a picture, shape, or chart).
  • Administrative permissions to edit the spreadsheet.

Step-by-Step

  1. Insert or Select Your Object: If you haven't already added your object, go to the Insert tab and select your desired item (e.g., Illustrations > Pictures or Illustrations > Shapes). If the object is already on the sheet, click on it once to select it. You will know it is selected when the resize handles (small circles or squares) appear around the border.
  2. Open the Format Pane: Right-click on the selected object. From the context menu that appears, select "Format Picture," "Format Shape," or "Format Chart Area" depending on what the object is. This will open a formatting pane, usually appearing on the right side of your Excel window. Note that menu labels may differ slightly depending on your version of Excel or operating system.
  3. Navigate to Size & Properties: In the Format pane, look for the icons at the top. Click on the "Size & Properties" icon, which typically looks like a green square with measurement lines.
  4. Expand the Properties Section: Click on the "Properties" dropdown menu to expand the options. This section controls how the object interacts with the cells underneath it.
  5. Select the Lock Option: You will see three radio buttons. Select the option labeled "Don't move or size with cells."
    • Move and size with cells: The object grows, shrinks, or moves if you change cell dimensions.
    • Move but don't size with cells: The object stays the same size but shifts position if rows/columns are inserted or deleted.
    • Don't move or size with cells: The object stays exactly where it is and maintains its dimensions regardless of grid changes.
  6. Verify the Fix: Close the Format pane. To test if the object is truly fixed, try widening a column or inserting a new row directly beneath or to the left of the object. The object should remain perfectly stationary.
  7. Locking Multiple Objects: If you have several objects to fix, hold the Ctrl key (Windows) or Command key (Mac) and click each object to select them all. Then, follow the same steps in the Format pane to apply the "Don't move or size with cells" setting to the entire group simultaneously.

Common Mistakes

One of the most frequent errors is confusing "fixing" an object's position with "locking" it from being edited. The steps above prevent the object from moving due to cell changes, but they do not prevent a user from clicking the object and dragging it manually. If you need to prevent manual movement, you must protect the worksheet (Review > Protect Sheet) and ensure the object is locked in its properties before protecting.

Another common mistake is applying the setting to only one part of a grouped object. If you have grouped several shapes together, you must select the entire group to apply the property. If you select an individual shape within a group, the setting may not apply globally to the group's container, leading to inconsistent behavior when rows are deleted.

Users also often forget that "fixing" an object does not mean it is anchored to a specific screen coordinate. If you scroll down the page, the object will still scroll with the cells. To make an object truly "fixed" to the screen (like a header), you must use the Freeze Panes feature (View > Freeze Panes) and place the object within the frozen area of the sheet.

Tips

For those building complex dashboards, consider using the Selection Pane. You can find this by going to the Home tab > Editing > Find & Select > Selection Pane. This opens a list of every object on your current sheet. It allows you to quickly select, rename, and hide objects, making it much easier to apply the "Don't move or size" setting to multiple overlapping elements without accidentally clicking the background cells.

If you are using a logo that needs to appear on every printed page, do not place it on the worksheet grid. Instead, go to Page Layout > Print Titles > Header/Footer. Objects placed in the header or footer are automatically fixed relative to the page and will not be affected by cell resizing or row deletions.

To ensure perfect alignment before fixing your objects, use the Align tools. Select multiple objects, go to the Shape Format tab, and use the "Align" menu to snap them to the left, center, or top. Once they are perfectly aligned, apply the "Don't move or size with cells" property to maintain that professional layout.

Troubleshooting

If the object is still moving despite selecting "Don't move or size with cells," first check if you have multiple objects layered on top of each other. You might be adjusting the property for a transparent shape while the visible image underneath is still set to "Move and size with cells." Use the Selection Pane to identify all objects in that area.

If the option "Don't move or size with cells" is greyed out or unavailable, ensure that the worksheet is not currently protected. If the sheet is protected, many formatting options are disabled. Go to the Review tab and click "Unprotect Sheet" before attempting to change the object properties.

In cases where the object disappears after you hide rows or columns, it is likely because the object was still set to "Move and size with cells" when the hide command was issued. Even if you change the setting after the rows are hidden, the object may remain hidden. Unhide all rows and columns, apply the "Don't move or size" setting, and then hide the rows again.

If you are using Excel on a web browser (Excel for the Web), you may find that some advanced object property settings are limited compared to the desktop application. If the Format pane does not offer the specific movement options, open the file in the desktop app by clicking "Editing" > "Open in Desktop App" to apply the fix.

Frequently Asked Questions

Can I lock an object so it cannot be moved by the mouse?

Yes, but this requires Worksheet Protection. Right-click the object, go to Format > Properties, and ensure "Locked" is checked. Then, go to the Review tab and select "Protect Sheet." This prevents any manual movement or editing of the object.

Does this work for charts as well as images?

Yes, the "Don't move or size with cells" property is available for charts, text boxes, shapes, and imported pictures. The process is identical for all these object types.

Will fixed objects stay in place if I filter the data?

Yes. When you apply a filter, Excel hides rows that do not meet the criteria. If an object is set to "Don't move or size with cells," it will remain visible and stationary even as the rows behind it are hidden by the filter.

Can I fix an object to the screen so it stays visible while scrolling?

Not through object properties alone. To achieve this, place the object in the top rows of your sheet and then use View > Freeze Panes > Freeze Top Row. The object will then stay fixed at the top of your screen as you scroll down.

Does this setting affect the object when I print the document?

No, this setting only affects how the object behaves within the digital workspace. Printing is based on the final visual layout of the page, regardless of whether the object is set to move or stay fixed relative to the cells.