Can Office Scripts Be Stored on a Network Drive in Excel?
Question details
A team wants to know if they can store Excel Office Scripts on a network folder or a third-party cloud service and access them from the Automate tab.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- Setting up a centralized repository for team scripts so that multiple users can access and run them directly from Excel's interface.
- Observed behavior
- Excel Office Scripts currently require specific Microsoft cloud environments, preventing users from natively mapping the Automate tab to local network drives or alternative cloud storage.
Ensure you have an active Microsoft 365 account with access to OneDrive for Business or SharePoint, as these are required to manage and share Office Scripts.
Use SharePoint to Share Office Scripts with Your Team
Since Office Scripts cannot be stored on a local network drive, saving and sharing them via a connected SharePoint site is the officially supported method for team access.
Office Scripts are tightly integrated with the Microsoft 365 ecosystem. By design, they can only be stored in OneDrive for Business or SharePoint. Excel cannot be configured to pull scripts from a local network folder, NAS drive, or third-party cloud services like Google Drive or Dropbox into the Automate tab.
Open Excel on the web or the Excel desktop application, and click on the 'Automate' tab on the ribbon.
Click on 'All scripts' or the specific script you have created in your OneDrive to open the Code Editor pane.
Click the 'More options' (three dots) menu on the script, select 'Share', and choose a SharePoint site that your team members have permission to access.
Team members can now open any workbook stored in that same SharePoint site, go to the Automate tab, and they will see the shared script available to run.

Use WPS Office for Flexible Macro Storage
If your team needs to store automation scripts and macros on local network drives without being forced into a specific cloud ecosystem, WPS Office provides excellent flexibility. WPS Office fully supports standard VBA and JSA macros that can be saved directly in your workbooks on any local or network drive.
- 1. Download and Install: Download WPS Office for free from the official website and install it on your computer.
- 2. Open Your Network File: Open your macro-enabled spreadsheet directly from your preferred network drive or local folder.
- 3. Manage Macros Locally: Use the Developer tab to create, run, and share your automation scripts securely within your own network environment.

Frequently Asked Questions
Where are Office Scripts saved by default?
By default, new Office Scripts are saved as .osts files in your personal OneDrive for Business account, typically under Documents > Documents > Office Scripts.
Can I manually add scripts from a network drive to the Automate tab?
No. The Automate tab is hardcoded to sync exclusively with your Microsoft 365 cloud storage (OneDrive and SharePoint). It cannot index or display files from a local network path.
How can I backup my Office Scripts to a local drive?
You can back up your scripts by navigating to your OneDrive folder in Windows File Explorer and copying the .osts files to a local or network drive. However, they must be copied back to OneDrive/SharePoint to run them via the Automate tab.
Why don't my shared scripts show up for other users?
For shared scripts to appear, the users must have permission to access the SharePoint site where the script was shared, and the Excel workbook they are using must also be located in that specific SharePoint environment.




