File Sharing Problems

Prevent Excel Shapes from Moving in Teams and SharePoint

Rana GarciaRana Garcia Nov 10, 2026 869 views

Question details

The user needs to stop shapes and macro buttons from moving or resizing when shared Excel workbooks are reopened in Microsoft Teams or SharePoint.

Product
Microsoft Excel, Teams, SharePoint
Device & OS
not provided
Scenario
Managing navigation buttons and macros in a shared workbook accessed by multiple users.
Observed behavior
Shapes used as macro buttons unpredictably move or resize upon reopening the workbook, even when they are configured not to move or size with cells.
Before you start

Ensure that all users accessing the shared workbook are opening it in the Excel desktop application, as Excel for the Web does not fully support macros and advanced shape formatting.

Solution 1Recommended

Replace Macro Buttons with Hyperlinks

Using shape-based hyperlinks instead of macro buttons prevents macro security conflicts and rendering issues in shared environments like Teams.

When multiple users co-author a workbook in SharePoint or Teams, macros designed to hide or unhide sheets can behave unpredictably. This often causes the macro buttons to shift out of place.

Replacing these macros with hyperlinks formatted as buttons provides a much more reliable navigation method that maintains its position during simultaneous editing.

1
Unhide worksheets

Right-click any sheet tab and select 'Unhide' to make all necessary worksheets permanently visible.

2
Insert a hyperlink

Right-click the shape you want to use as a navigation button and select 'Link' or 'Hyperlink'.

3
Link to a specific sheet

In the Insert Hyperlink dialog, choose 'Place in This Document' from the left menu.

4
Set the destination

Select the target worksheet or specific cell reference you want the button to navigate to, and click 'OK'.

Replace Macro Buttons with Hyperlinks
Improved Stability: Hyperlinks do not trigger macro security warnings and remain fully functional even when the workbook is opened in Excel for the Web.
Free Microsoft Office alternative

Try WPS Office for Stable Spreadsheet Editing

If shared workbooks in Microsoft Teams or SharePoint are causing your shapes and macros to break, WPS Office provides a lightweight, highly compatible alternative for creating and managing complex spreadsheets without the subscription costs.

  1. 1. Download WPS Office: Download and install WPS Office for free on your PC or Mac.
  2. 2. Open your workbook: Launch WPS Spreadsheet and open your existing .xlsm or .xlsx file directly.
  3. 3. Edit without shifting: Edit your shapes, macros, and data with complete formatting retention.
Seamless compatibility with Microsoft Excel (.xlsx, .xls, .xlsm) formats.Reliable shape and object rendering that stays exactly where you put it.Advanced macro (VBA) support available for executing complex workflows smoothly.Free, lightweight, and easy to use with a familiar tabbed interface.
QA img-9

Frequently Asked Questions

Why do my Excel macros fail when opened in Teams?

Excel for the Web, which is the default viewer in Microsoft Teams, does not support running VBA macros. To use macros, users must click 'Open in Desktop App' from the Teams interface.

Can I prevent multiple users from triggering macros simultaneously in SharePoint?

Co-authoring with active macros can cause file sync conflicts and object shifting. It is highly recommended to use standard Excel features like hyperlinks, data validation, or built-in formulas instead of macros for navigation in shared workbooks.

What does 'Don't move or size with cells' actually do?

This property ensures that if you insert, delete, or resize rows and columns around or underneath a shape, the shape itself will remain in its exact absolute position on the worksheet and will not stretch or compress.