How to Force Users to Make a Copy of an Excel Workbook
Question details
The user needs to share a master Excel workbook containing Office Scripts and external API connections via OneDrive, ensuring each user gets their own blank copy to fill out without modifying the original file.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- Distributing an institutional report template where users input an ID to fetch external API data, requiring individual editable copies while keeping the master file strictly locked from edits.
- Observed behavior
- Native Excel sharing does not provide a direct 'force-copy' option for shared web links that reliably works with advanced Office Scripts, requiring alternative distribution methods.
Before attempting to force a copy, ensure your Office Scripts and external API connections do not rely on hardcoded, user-specific credentials that might break when the file is duplicated.
Distribute the File as an Excel Template (.xltx)
Converting your master workbook into an Excel Template format is the most reliable way to ensure users generate a fresh, unnamed copy every time they open it.
When a user opens an .xltx file, Excel automatically creates a new instance of the workbook (e.g., 'Book1'). This protects your original design and scripts while allowing the user to save their independent report.
Open your completed master Excel workbook that contains the necessary Office Scripts.
Navigate to 'File' > 'Save As'. In the file format dropdown menu, select 'Excel Template (*.xltx)'.
Upload this .xltx file to your institutional OneDrive or SharePoint and share a 'View Only' link, or distribute the file directly to the users.

Modify the OneDrive/SharePoint URL to Force Download
You can alter the web link generated by OneDrive or SharePoint to bypass Excel Online and force the user's browser to download a local copy.
Build an Automated Provisioning Workflow
For institutional environments, using an automation tool like Power Automate can automatically duplicate the master file and send it to the user upon request.
Try WPS Office for Simplified File Sharing and Collaboration
If navigating complex sharing permissions, forced copies, and macro compatibility issues across Mac and PC is slowing down your workflow, WPS Office provides a streamlined, highly compatible alternative. Enjoy seamless document sharing, intuitive template creation, and effortless cross-platform collaboration.
- 1. Download and Install: Visit the official WPS Office website to download the free suite for your operating system.
- 2. Open Your Files: Launch WPS Spreadsheet and open your existing Excel workbooks without losing formatting.
- 3. Share Securely: Use the built-in sharing feature to easily distribute read-only links or collaborative workspaces.

Frequently Asked Questions
Can I lock an Excel file so users can only view it but still make a copy?
Yes. When sharing via OneDrive or SharePoint, set the link permissions to 'Can View' and disable 'Allow Editing'. Users will not be able to change the master file, but they can open it in Excel and click 'File' > 'Save As' > 'Download a Copy' to get their own editable version.
Why use Office Scripts instead of VBA for shared online workbooks?
VBA macros are designed for desktop environments and are not supported in Excel Online. Additionally, some advanced VBA features (like dictionaries) have compatibility issues on macOS. Office Scripts are cloud-native and run seamlessly across web browsers, Windows, and Mac.
Will Office Scripts still work if a user downloads a local copy of the workbook?
Yes, provided the Office Scripts are saved directly into the workbook rather than uniquely in the original author's personal OneDrive. However, if the script calls external APIs, the user's local network or Excel trust center settings must allow external data connections.




