4

My VSTO application is a C# Add-In. I would like to add some undo(Ctrl +z) and redo functionality(Ctrl +Y).

mas_oz2k1
  • 2,851
  • 3
  • 34
  • 41

2 Answers2

1

Is this what you're looking for?

Globals.ThisAddIn.Application.Undo()

Globals.ThisAddIn.Application.Repeat()
Peter Majeed
  • 5,304
  • 2
  • 32
  • 57
code4life
  • 15,655
  • 7
  • 50
  • 82
0

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.

Community
  • 1
  • 1
Michael Regan
  • 1,568
  • 16
  • 17