DefaultWebOptions.AllowPNG property (Word)
False if PNG (Portable Network Graphics) is not allowed as an output format. Read/write Boolean.
Syntax
expression.AllowPNG
expression A variable that represents a DefaultWebOptions collection.
Remarks
True if PNG is allowed as an image format when you save a document as a webpage. The default value is False.
If you save images in the PNG format and if the web browsers you are targeting support the PNG format, you might improve the image quality or reduce the size of those image files, and therefore decrease the download time.
Example
This example enables PNG as an output format for the active document.
ActiveDocument.WebOptions.AllowPNG = True
Alternatively, PNG can be enabled as the global default for the application for newly created documents.
Application.DefaultWebOptions.AllowPNG = True
See also
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for