Fix Embedded Excel Pictures Missing After HTML Export to OneDrive
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.

- 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.
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.
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.
Find your exported HTML file on your local drive and locate the associated folder, which is usually named automatically as '[filename]_files'.
Upload both the HTML file and the entire '[filename]_files' folder to the exact same directory in your OneDrive for Business account.
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.

Use Alternative Hosting or Export as PDF
Bypass OneDrive's HTML viewing limitations by using a standard web hosting service, or convert the file to PDF to ensure formatting and images are preserved universally.
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. Open your workbook: Launch WPS Spreadsheet and open the file containing your embedded pictures.
- 2. Export to PDF: Click on 'Menu' in the top-left corner and select 'Export to PDF'.
- 3. Share flawlessly: Save the PDF and share it via OneDrive to guarantee all pictures are visible to the recipient.

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.




