Make Excel Shapes Move Correctly When Rows Are Deleted
Question details
The user wants lines and other Excel shapes to behave predictably when rows above them are deleted.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- A worksheet contains shapes whose positions should either follow cells or remain fixed when rows are deleted.
- Observed behavior
- Shapes may not move as expected because of their placement properties, and hidden rows can make the behavior appear inconsistent.
Decide whether each shape should move and resize with cells, move without resizing, or stay fixed. Check for hidden rows near the shapes before testing a row deletion.
Set the Excel Shape Placement Property
Use the shape's properties to choose how it responds when worksheet rows change.
Right-click the line or other shape in the worksheet and select Format Shape.
In the Format Shape pane, select Size & Properties, then expand Properties.
Select Move and size with cells to let the shape move and resize with its cells, Move but do not size with cells to keep its size while it moves, or Do not move or size with cells to keep it fixed.
Delete a row above the shape and check its position. If the result is not what you need, use Undo and try another placement option.

Unhide Rows Before Checking Shape Movement
Use this check when hidden rows make the effect of deleting rows difficult to interpret.
Work With Excel Spreadsheets in WPS Office
WPS Office is a free, lightweight alternative with a familiar spreadsheet interface. Open compatible Excel files in WPS Spreadsheet to make it easier to move your everyday spreadsheet work to WPS.

Frequently Asked Questions
Which setting keeps a shape the same size when rows are deleted?
Right-click the shape, select Format Shape > Size & Properties > Properties, and choose Move but do not size with cells.
How can I stop an Excel shape from moving with cells?
In Format Shape > Size & Properties > Properties, select Do not move or size with cells.
Can hidden rows affect how shape movement appears?
Yes. Select the row headers around the hidden rows, then use Home > Format > Hide & Unhide > Unhide Rows to inspect the worksheet before testing the shape.
Do I need to change the setting for every shape?
Placement is a property of each shape. Check the Properties section in Format Shape for each line or shape that needs a different behavior.




