开发者

Is it possible to do Undo/Redo in Excel using C#?

开发者 https://www.devze.com 2022-12-08 22:05 出处:网络
My VSTO application is a C# Add-In. I would like to add some undo(Ctrl +开发者_如何学运维z) and redo functionality(Ctrl +Y).Is this what you\'re looking for?

My VSTO application is a C# Add-In. I would like to add some undo(Ctrl +开发者_如何学运维z) and redo functionality(Ctrl +Y).


Is this what you're looking for?

Globals.ThisAddIn.Application.Undo()

Globals.ThisAddIn.Application.Repeat()


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消