logo
search
File Format & Compatibility

Fix Embedded Excel Pictures Missing After HTML Export to OneDrive

Olivia MillerOlivia Miller Sep 25, 2026 870 views

Question details

The user needs to resolve an issue where pictures embedded in an Excel workbook disappear or turn into placeholders when the file is exported to HTML or MHTML and hosted on OneDrive for Business.

Fix Embedded Excel Pictures Missing After HTML Export to OneDrive
Product
Microsoft Excel, OneDrive for Business
Device & OS
not provided
Scenario
Exporting an Excel print area containing embedded images to HTML or MHTML format for online sharing via OneDrive.
Observed behavior
The exported HTML file fails to locate the associated image folder when shared from OneDrive, resulting in missing pictures. MHTML files also show placeholders or fail to open in the online viewer.
Before you start

Ensure that both your exported HTML file and its automatically generated associated image folder are saved in the same local directory before attempting to upload them to any cloud storage.

Solution 1Recommended

Verify the Image Folder and Maintain Relative Paths

When Excel exports a file to HTML, it creates a separate folder to store embedded images. This folder must be uploaded alongside the HTML file with its original name to maintain relative links.

OneDrive and other cloud storage viewers sometimes struggle to resolve relative path links between an HTML file and its associated resource folder. Ensuring both exist in the same cloud directory is the first step to troubleshooting.

1
Locate the local files

Find your exported HTML file on your local drive and locate the associated folder, which is usually named automatically as '[filename]_files'.

2
Upload folder and file together

Upload both the HTML file and the entire '[filename]_files' folder to the exact same directory in your OneDrive for Business account.

3
Test local download

Download both the file and folder from OneDrive to a different local machine and open the HTML file to verify if the images appear, which confirms whether the issue is strictly related to OneDrive's online web viewer.

Verify the Image Folder and Maintain Relative Paths
OneDrive Viewer Limitations: OneDrive for Business may block relative path referencing in HTML files for security reasons, causing images to break in the browser even if uploaded correctly.
Free Microsoft Office alternative

Try WPS Office for Flawless File Exports

Avoid the hassle of broken HTML image links and missing pictures. WPS Spreadsheet offers seamless compatibility with Microsoft Excel formats and provides a highly reliable, built-in PDF export feature to keep your embedded images perfectly intact when sharing.

  1. 1. Open your workbook: Launch WPS Spreadsheet and open the file containing your embedded pictures.
  2. 2. Export to PDF: Click on 'Menu' in the top-left corner and select 'Export to PDF'.
  3. 3. Share flawlessly: Save the PDF and share it via OneDrive to guarantee all pictures are visible to the recipient.
Highly compatible with Microsoft Excel (.xlsx, .xls) and other major Office formats.Built-in PDF converter ensures embedded images and print areas are perfectly preserved when shared.Free, lightweight, and easy-to-use alternative to Microsoft Office.Familiar user interface requiring no learning curve for quick migration.
microsoft office alternative - wps office

Frequently Asked Questions

Why does Excel create a separate folder when saving as HTML?

Excel uses the HTML format to save the text and structure of your data, but HTML code cannot embed raw image data directly by default. Instead, it saves the pictures in a supplementary folder and links them to the HTML file using relative paths.

Why do MHTML files show missing picture placeholders on OneDrive?

MHTML (MHT) files are designed to embed images directly into a single web archive file. However, OneDrive's online file viewer often lacks full support for rendering the MHTML protocol, causing embedded media to fail to load or display as placeholders.

How can I share an Excel print area with pictures without losing them?

The most reliable method for sharing an Excel file with preserved formatting, layouts, and embedded pictures is exporting it as a PDF file. A PDF securely embeds all visual elements into a single, unalterable document that works on any cloud storage platform.