VisSaveAsWeb.WebPageSettings property
Returns a VisWebPageSettings object that represents the webpage settings that will be used for the Save as Web Page operation. Read-only.
Syntax
expression.WebPageSettings
expression An expression that returns a VisSaveAsWeb object.
Remarks
Use the WebPageSettings property to get a VisWebPageSettings object. You can then use the VisWebPageSettings object to get and set the properties of your webpage.
Example
This example shows the simplest way to create a webpage. Because no properties of the VisWebPageSettings object are set (except the TargetPath property, which is required), all the default settings apply, and the active document is saved.
Before running this macro, replace path
with a valid target path on your computer and replace filename.htm
with the file name that you want to assign to your webpage.
Public Sub WebPageSettings_Example()
Dim vsoSaveAsWeb As VisSaveAsWeb
Dim vsowebSettings As VisWebPageSettings
Set vsoSaveAsWeb = Visio.Application.SaveAsWebObject
Set vsoWebSettings = vsoSaveAsWeb.WebPageSettings
vsoWebSettings.TargetPath = "path\filename.htm"
vsoSaveAsWeb.CreatePages
End Sub
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.