RedoActionsAvailable Property.RedoActionsAvailable Property
|Publisher Developer Reference|
expression A variable that represents a RedoActionsAvailable Property object.
The following example adds a rectangle that contains a text frame to the fourth page of the active publication. Some font properties and the text of the text frame are set. A test is then run to determine whether the font in the text frame is Courier. If so, the Undo method is used with the value of the UndoActionsAvailable property passed as a parameter to specify that all previous actions be undone.
The Redo method is then used with the value of the RedoActionsAvailable property minus 2 passed as a parameter to redo all actions except for the last two. A new font is specified for the text in the text frame, in addition to new text.
This example assumes the active document contains at least four pages.
|Visual Basic for Applications|