Document.RenameCurrentScope Method

Visio Automation Reference

Renames the top-level open undo scope.

Version Information
 Version Added:  Visio 2002

Syntax

expression.RenameCurrentScope(bstrScopeName)

expression   A variable that represents a Document object.

Parameters

Name Required/Optional Data Type Description
bstrScopeName Required String The new name of the undo scope.

Return Value
Nothing

Remarks

The new name assigned to the undo scope appears on the Undo menu as the item name. If there is no open undo scope, the RenameCurrentScope method raises an exception.

See Also