locked
Remove item from undo list RRS feed

  • Question

  • can I avoid adding item to undo list. or remove item from undo list

    I need avoid user undoing 

    the changes to document made from my vba or VSTO code 


    dddd

    Monday, November 16, 2020 5:34 AM

All replies

  • The VBA command for this is:

    ActiveDocument.UndoClear
    Hope this helps

    Kind Regards, Rich ... http://greatcirclelearning.com

    Monday, December 7, 2020 8:13 PM
  • thanks.

    But this removes all the undo list. I need to remove only single item from undo lsit

    Tuesday, December 8, 2020 3:45 AM
  • Well then ...

    ActiveDocument.Undo(1)

    That removes just the last action.


    Kind Regards, Rich ... http://greatcirclelearning.com

    Tuesday, December 8, 2020 1:18 PM