ElyxAI
charts

How to How to Lock Chart Position and Size

Excel 2016Excel 2019Excel 365Excel Online

Learn how to lock a chart's position and size in Excel to prevent accidental moving or resizing. This tutorial covers protecting charts from unwanted modifications while keeping data editable. You'll master both manual locking and format cell protection methods to maintain consistent report layouts.

Why This Matters

Locking charts prevents accidental repositioning in shared workbooks and maintains professional report formatting. This is essential for dashboard stability and collaborative environments where multiple users edit the same file.

Prerequisites

  • Basic Excel knowledge and chart creation experience
  • A chart already inserted in your worksheet
  • Understanding of Excel sheet protection features

Step-by-Step Instructions

1

Select the Chart

Click on the chart to select it; you'll see selection handles (small squares) around its border indicating it's selected.

2

Access Format Chart Area

Right-click the chart border and select 'Format Chart Area' from the context menu.

3

Navigate to Size & Properties

In the Format pane, click the 'Size & Properties' icon (looks like a box with arrows) in the right panel.

4

Enable Lock Position and Size

Expand the 'Properties' section and check both 'Locked' and 'Don't move or size with cells' checkboxes.

5

Protect the Sheet

Go to Review > Protect Sheet, set a password (optional), ensure 'Locked objects' is checked, then click OK to activate the lock.

Alternative Methods

Using Chart Format Pane Directly

Select chart, go to Chart Design > Format Selection, then use the Size & Properties panel to lock without right-clicking.

Quick Lock via Properties Dialog

Right-click chart > Size and Position > Position & Size tab > check 'Don't move or size with cells' for faster locking without full sheet protection.

Tips & Tricks

  • Use sheet protection passwords only when sharing files with others to prevent accidental unprotection.
  • Test the lock by attempting to drag the chart after protection is enabled to confirm it's working.
  • Lock charts before sharing dashboards to maintain consistent layouts across team members' edits.

Pro Tips

  • Combine locked charts with data validation to create interactive dashboards where users can update data without moving visualizations.
  • Use 'Don't move or size with cells' option when charts are positioned over specific data ranges to prevent misalignment during row/column operations.
  • Create chart templates with pre-locked positions to save time when building multiple similar dashboards.

Troubleshooting

Chart can still be moved after locking

Verify sheet protection is active: Review > Protect Sheet should show a checkmark or 'Unprotect Sheet' option. If not, re-apply protection and ensure 'Locked objects' is checked in the Protect Sheet dialog.

Cannot edit chart data after protection

Sheet protection is too restrictive. Unprotect the sheet (Review > Unprotect Sheet), then reapply protection with 'Format cells' checked to allow data editing while keeping charts locked.

Chart moves when inserting/deleting rows or columns

Ensure 'Don't move or size with cells' is checked in the chart's Size & Properties. If still moving, you may be deleting rows/columns containing the chart's source data.

Frequently Asked Questions

Will locking a chart prevent users from editing the underlying data?
No. Locking only prevents moving/resizing the chart itself. Users can still edit the source data unless you apply additional cell protection restrictions. Use Review > Protect Sheet with selective permissions to control data editing independently.
Can I lock multiple charts at once?
You must lock charts individually through their Format pane. However, once sheet protection is enabled, all locked charts are protected simultaneously. Select each chart and apply the lock settings, then protect the sheet once.
What's the difference between 'Locked' and 'Don't move or size with cells'?
'Locked' prevents moving/resizing only when sheet protection is on. 'Don't move or size with cells' anchors the chart to prevent accidental displacement during row/column operations regardless of protection status. Use both for maximum safety.
How do I unlock a chart after protection?
Unprotect the sheet first (Review > Unprotect Sheet, enter password if set), then select the chart, open Format > Size & Properties, uncheck 'Locked', and reprotect if needed.
Does chart locking work in Excel Online?
Yes, but functionality is limited. Excel Online respects sheet protection and locked objects, but the interface for setting locks may differ slightly. Basic protection features work the same across desktop and web versions.

This was one task. ElyxAI handles hundreds.

Sign up