PDF made from Excel spreadsheet not saving to local folder

Bourne Enders 0 Reputation points
2026-11-26T14:09:37.07+00:00

I am using Excel 2019 which I paid for. I made a spreadsheet that just happened to be in a OneDrive folder. I then made a PDF of it, by pressing F12, Save As Type PDF, checked the box for Open file after publishing. When the file opened, it did not open using the PDF reader I have installed on my terminal, instead it opened in a browser window with this URL:

https://onedrive.live.com/shared?id=...

Looking at the folder it should have saved into, the file was missing.
I managed to save the PDF in the end by picking another folder that was not a OneDrive folder, but that's not the point, I need my files to save locally in the first instance and to definitely NOT assume I'm going to share it with anyone.

How do I correct this?

Microsoft 365 and Office | OneDrive | Other | Windows
0 comments No comments

2 answers

Sort by: Most helpful
  1. Bourne Enders 0 Reputation points
    2026-11-26T14:16:52.2466667+00:00

    Thank you AI. You asked me to check that "Save to Computer by default" is checked. It is already checked.

    I want the default folder to save to be the same folder as the Excel spreadsheet is already in, whether it's a OneDrive folder or not, but I need it to save locally and not to a OneDrive URL for sharing. Where is the setting for switching off that sharing option, and to make Excel treat the folder as just another folder on my computer?

    Was this answer helpful?

    0 comments No comments

  2. AI answer

    2026-11-26T14:10:57.1533333+00:00

    Saving into a OneDrive folder invokes OneDrive synchronization; to make local storage the default, configure Excel to use a folder outside OneDrive, while treating PDF opening and file sharing as separate settings.

    Make Excel save locally by default

    In Excel 2019:

    1. Select File → Options → Save.
    2. If Save to Computer by default is available, select it.
    3. In Default local file location, enter a genuinely local path outside OneDrive, for example: C:\Users\<your-user-name>\Documents
    4. Select OK, close Excel, and reopen it.
    5. Test with F12 → Computer/This PC → Browse, select PDF, and verify that the full destination path is outside the OneDrive folder.

    Microsoft documents File → Save As → Computer → Browse as the way to select a folder on the computer in Excel ^1^. Some Office versions also expose Save to Computer by default and Default local file location under File → Options → Save ^2^. If that checkbox is absent in your Excel 2019 build, setting the local path and explicitly selecting Computer/This PC is the applicable method.

    A folder such as C:\Users\<name>\OneDrive\... is still a OneDrive folder even though it appears in File Explorer. Files created there are stored through the OneDrive synchronization system. Windows lets you select OneDrive or This PC each time you save ^3^.

    If you want the OneDrive folder but also require a local copy

    Right-click the required OneDrive folder in File Explorer and select Always keep on this device. A green circle with a white check mark means its contents are downloaded and available locally, including offline ^4^.

    This does not make it a local-only folder: changes still synchronize with OneDrive. For local-only storage, the destination must be outside the OneDrive directory.

    If the PDF is missing from File Explorer after saving into OneDrive:

    1. Select the OneDrive cloud icon in the Windows notification area.
    2. Check whether synchronization is in progress or reporting an error.
    3. Check the same folder on OneDrive on the web.
    4. In File Explorer, inspect the file’s status icon:
      • Blue cloud: online only.
      • Green check: locally available.
      • Green circle/white check: always available locally.
      • Circular arrows: synchronization is still running.

    These status meanings are documented by Microsoft ^5^.

    Stop PDFs opening in the browser

    First test with a PDF saved outside OneDrive. Then set the local PDF association:

    1. Open Windows Settings.
    2. Select Apps → Default apps.
    3. Search for .pdf.
    4. Select the current application and choose your installed PDF reader.

    Windows supports assigning a default application by file extension ^6^.

    A URL beginning with https://onedrive.live.com/... is a web link, not the local PDF file, so Windows correctly sends that URL to a browser. Changing the .pdf association affects local PDF files; it does not cause OneDrive web links to open as local files. Temporarily clearing Open file after publishing can help separate successful PDF creation from the subsequent web-opening action.

    Privacy and sharing

    Saving a file in personal OneDrive does not by itself share it with anyone. OneDrive documents are private by default unless a file or folder is explicitly shared ^7^.

    To verify that no link or permission exists:

    1. Open OneDrive on the web.
    2. Select the PDF or its containing folder.
    3. Open Information → Manage access.
    4. If any unwanted sharing link is listed, select X → Remove link ^8^.

    References

    1. Save your workbook | Microsoft Support
    2. Customize the save experience in Office | Microsoft Support
    3. How to change the default save location in OneDrive for Windows | Microsoft Support
    4. Save disk space with OneDrive Files On-Demand for Windows | Microsoft Support
    5. What do the OneDrive icons mean? | Microsoft Support
    6. Change Default Apps in Windows | Microsoft Support
    7. Manage document privacy | Microsoft Support
    8. [OneDrive, SharePoint](https://support.microsoft.com/onedrive/sharepoint/manage-sharing-and-permissions-in-onedrive-and-sharepoint#stop-sharing-with-people-or-through-a-link)
    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was this answer helpful?

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.