SaveToFile method

Microsoft Visio Developer Reference

SaveToFile method

       

Saves the user interface represented by a UIObject object in a file.

Version added

4.0

Syntax

object.SaveToFile fileName

object

Required. An expression that returns the UIObject object to save to the file.

fileName

Required String. The name of the file in which to save the UIObject object.

Remarks

The file can be loaded into the application by using the LoadFromFile method of a UIObject object.

Note Beginning with Visio 2000, you can customize the user interface by right-clicking the toolbar, and then clicking Customize on the shortcut menu. Changes you make to the interface persist when you close the application—they are stored with the Application object and in a file named Custom.vsu, which is stored as Application Data in the current user's User Profile.