Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Loads the webpage settings that were saved in the registry in an earlier instance of Microsoft Visio.
Syntax
expression.InitSettings
expression An expression that returns a VisWebPageSettings object.
Return value
Nothing
Remarks
Use the InitSettings method to reinitialize the webpage settings to those values stored in the registry.
Example
The following example shows how to use the InitSettings method to reinitialize the webpage settings to those that were saved in an earlier instance of Visio.
Before running this example, replace path\filename with a valid path and file name for the webpage project file.
Public Sub InitSettings_Example()
Dim vsoSaveAsWeb As VisSaveAsWeb
Dim vsoWebSettings As VisWebPageSettings
Set vsoSaveAsWeb = Visio.Application.SaveAsWebObject
Set vsoWebSettings = vsoSaveAsWeb.WebPageSettings
With vsoWebSettings
.InitSettings
.TargetPath = "path\filename"
End With
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.