RenameCurrentScope method

Microsoft Visio Developer Reference

RenameCurrentScope method

   Example   

Renames the top-level open undo scope.

Version added

2002

Syntax

object.RenameCurrentScope bstrScopeName

object

Required. An expression that returns an Application object that contains the undo scope.

bstrScopeName

Required String. The new name of the undo scope.

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.