none
Word Add-in: Accessing the Undo Stack RRS feed

  • Question

  • Hello,

           I am developing a word add-in using VB.NET. I am able to create an undo record for a set of operations done by a single macro.

    Ref: https://msdn.microsoft.com/en-us/library/office/hh420330.aspx

    Now, i need to display a message when undoing a particular record. Is there a way to access the Undo Stack to check which undo object is currently on top of the stack and is there an event handler for undo click?

    Thanks,

    Nandu

    Sunday, May 28, 2017 5:56 AM

All replies

  • Hi Nandu_V,

    I find the link you provide is Working with the UndoRecord Object in VBA, can you tell me your project is VBA or vb.net.

    Thanks for your understanding.

    Best Regards,

    Cherry


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Sunday, May 28, 2017 2:00 PM
    Moderator
  • Hi Cherry, 

    I am using vb.net. The UndoRecord Object is created in the same way as given in the link

    Regards,

    Nandu

    Tuesday, May 30, 2017 10:14 AM
  • Hi Nandu_V,

     Based on the following thread, it seems that there's nothing available that's not in VBA itself.

    https://stackoverflow.com/questions/20227078/how-to-access-the-undo-stack-in-excel-from-c-sharp-via-office-interop

    Best regards,

    Cole Wu


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Thursday, June 8, 2017 8:46 AM
    Moderator
  • Nandu,

    Did you know that in these forums you can also add images. Look at the mountain button with the Japanese flag above it. 


    Success
    Cor

    Thursday, June 8, 2017 10:03 AM