My VSTO application is a C# Add-In. I would like to add some undo(Ctrl +z) and redo functionality(Ctrl +Y).
A:
I've used a hidden document in conjunction with Range.WordOpenXML/.InsertXML with good success in Word. I can't say how well it would work with Excel. Here is my previous answer with some code samples.
Mike Regan
2009-10-13 04:11:39
I will if this idea is applicable to Excel
mas_oz2k1
2009-10-26 03:29:18
A:
Is this what you're looking for?
Globals.ThisAddIn.Application.Undo()
Globals.ThisAddIn.Application.Repeat()
code4life
2010-03-19 21:42:52