logo
search
OneDrive File Issues

How to Automatically Send OneNote Attachments to a OneDrive Folder

Maira MehtabMaira Mehtab Sep 22, 2026 869 views

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.
Before you start

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.

Solution 1Recommended

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.

1
Upload to OneDrive

Open your OneDrive directory using File Explorer or the web browser, navigate to your target folder, and upload the file.

2
Copy the File Link

Right-click the newly uploaded file in OneDrive and select 'Copy link' to generate a shareable URL.

3
Insert the Link in OneNote

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.

Free Microsoft Office alternative

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. 1. Download the Software: Visit the official WPS Office website and download the free installer for your operating system.
  2. 2. Install WPS Office: Run the setup file and follow the on-screen instructions to complete the installation.
  3. 3. Open Your Files: Launch WPS Office and simply drag and drop your existing Microsoft Office documents into the workspace to begin editing.
Free to use with a lightweight, fast installation processFully compatible with Microsoft Word, Excel, and PowerPoint formatsBuilt-in WPS Cloud allows you to easily sync, organize, and link documentsIntuitive tabbed interface helps you manage multiple file types in a single window
microsoft office alternative - wps office

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.