Unexpected Pop-up When Saving Word Document as HTML (Microsoft 365 Apps for enterprise - Version 16.0.18526.20264)

Rokah, RotemX 0 Reputation points
2025-04-28T15:55:57.82+00:00

Dear Microsoft Support,

I am experiencing an issue when programmatically saving a Word.Document object as HTML using Word automation (Interop) in my application.

Environment details:

  • Product: Microsoft 365 Apps for enterprise (en-us)

Version: 16.0.18526.20264

  • Operating System: Windows 11 Enterprise, version 23H2 (OS Build 22631.5189)

Problem Description: When I attempt to save a Word document (created or cloned in memory) to HTML format via the SaveAs method, an unexpected pop-up appears during the operation. This dialog interrupts the automated process, which should be fully silent.

I have ensured that:

Application.DisplayAlerts is set to wdAlertsNone before saving.

All tracked revisions are accepted (AcceptAllRevisionsShown()).

All fields are unlinked (Field.Unlink()).

The document is marked as saved (Document.Saved = true) before and after saving.

The document is cleaned to remove problematic characters and objects.

Despite these measures, the pop-up still appears, causing the process to require manual user intervention, which is not acceptable in my automated workflow.

Request: I would appreciate your assistance in:

Understanding why this pop-up appears in the latest Word version during SaveAs(HTML) operation.

Confirming whether this is a known issue, a new behavior introduced recently, or a bug.

Providing guidance or workarounds to ensure a truly silent save to HTML process without any UI interruptions.

Please let me know if you require a minimal reproducible sample or additional logs.

Thank you for your support.image

Best regards,

Rotem Rokah

Word Management
Word Management
Word: A family of Microsoft word processing software products for creating web, email, and print documents.Management: The act or process of organizing, handling, directing or controlling something.
999 questions
0 comments No comments
{count} votes

Your answer

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