How to Automatically Send OneNote Attachments to a OneDrive Folder
Question details
The user wants to configure OneNote so that files dragged onto a page are automatically moved and saved to a specific OneDrive folder based on their location on the page.
- Product
- Microsoft OneNote and OneDrive
- Device & OS
- not provided
- Scenario
- Organizing digital notes and ensuring that any attachments added to a OneNote notebook are systematically stored in designated OneDrive folders rather than being embedded inside the notebook.
- Observed behavior
- OneNote natively embeds dragged files as internal attachments and does not support automatically moving them to external OneDrive folders. Additionally, VBA support in OneNote is too limited to script this behavior directly.
Verify that you are signed into your Microsoft account on both OneNote and OneDrive. If you plan to use automation workflows, check if your Microsoft 365 license includes access to Power Automate.
Store Files in OneDrive and Insert Links Manually
Since OneNote lacks native automation for external folder routing, manually storing the file in OneDrive and linking it to your notebook is the most reliable method.
By keeping the original file in OneDrive and using a hyperlink in OneNote, you prevent the notebook file size from ballooning while keeping your documents properly categorized in folders.
Open your OneDrive directory using File Explorer or the web browser, navigate to your target folder, and upload the file.
Right-click the newly uploaded file in OneDrive and select 'Copy link' to generate a shareable URL.
Open your OneNote page, highlight the text where you want the file reference, press Ctrl+K (or Command+K on Mac) to open the hyperlink dialog, and paste the OneDrive link.
Automate Workflow Using Microsoft Power Automate
Create a custom cloud flow to handle file routing between OneNote and OneDrive for more advanced integration.
Try WPS Office for Seamless Document Management
If you are looking for a lightweight, free alternative to Microsoft Office that handles documents, spreadsheets, and presentations efficiently, WPS Office is an excellent choice. It offers high compatibility with standard Office formats and includes built-in cloud storage for streamlined file organization.
- 1. Download the Software: Visit the official WPS Office website and download the free installer for your operating system.
- 2. Install WPS Office: Run the setup file and follow the on-screen instructions to complete the installation.
- 3. Open Your Files: Launch WPS Office and simply drag and drop your existing Microsoft Office documents into the workspace to begin editing.

Frequently Asked Questions
Can I use VBA in OneNote to automate file transfers?
No, VBA support in OneNote is highly limited compared to desktop applications like Excel or Word. It cannot be used to script complex file routing based on page location.
Why do dragged files embed directly instead of uploading to a specific folder?
OneNote natively handles dropped files by embedding them as attachments directly within the notebook's internal data structure. This is by design, ensuring notes and their attachments travel together without relying on external file paths.
Is there a third-party add-in for OneNote folder routing?
Most third-party add-ins, such as Onetastic, do not support external file system routing out of the box. Custom Power Automate flows or specialized Graph API development are typically required to achieve this.
How can I save space in my OneNote notebook when attaching large files?
Instead of dragging and dropping large files directly into the page (which bloats the notebook size), upload the large file to a cloud service like OneDrive first. Then, generate a shareable link and paste that link into your OneNote page.




