Table of contents
Collapse the table of content
Expand the table of content

Document.Redo Event (Publisher)

office 365 dev account|Last Updated: 8/24/2017
3 Contributors

Occurs when reversing the last action that was undone.


expression. Redo

_expression_A variable that represents a Document object.


The Redo event occurs immediately after the action is redone.

If multiple actions are redone, the Redo event occurs only once, after all the actions are complete.

For more information about using events with the Document object, see Using Events with the Document Object.


This example displays a message when a user clicks Undo on the Standard toolbar or selects Redo from the Edit menu. For this routine to work with the current publication, you must put it in the ThisDocument module.

Private Sub DocPub_Redo() 
 MsgBox "Your last undo has been reversed." 
End Sub

To trap this event from a non-Microsoft Publisher project, you must place the following code in the General Declarations section of your module and run the InitiatePubApp routine.

Private WithEvents DocPub As Publisher.Document 

Sub InitiatePubApp() 
 Set DocPub = Publisher.ActiveDocument 
End Sub
© 2018 Microsoft