Undo function

Add-in Express™ Support Service
That's what is more important than anything else

Undo function
 
Ma ka




Posts: 75
Joined: 2011-02-25
How can i integrate the working steps of my excel AddIn in the Excel Undo Functions?


Thanks
Posted 17 Jun, 2013 01:27:06 Top
Andrei Smolin


Add-in Express team


Posts: 18825
Joined: 2006-05-11
Hello Ma,

There's no way to achieve this.


Andrei Smolin
Add-in Express Team Leader
Posted 17 Jun, 2013 01:51:35 Top
Ma ka




Posts: 75
Joined: 2011-02-25
Dear Andrei,

is the an way to made an custome undo?


Thanks
Posted 17 Jun, 2013 08:41:15 Top
Andrei Smolin


Add-in Express team


Posts: 18825
Joined: 2006-05-11
Hello Ma,

I don't think it is possible. In fact, they allow the developer to add a custom entry to the Undo list in Excel; the problem is that the entry must point to a VBA macro, see http://msdn.microsoft.com/en-us/library/office/ff194135.aspx. You cannot bypass this restriction. Plus, using a macro creates more problems, see http://excel.tips.net/T002060_Preserving_the_Undo_List.html.

Maybe, you'll find some ideas at http://stackoverflow.com/questions/661269/can-i-create-an-undo-transaction-in-word-or-excel-vsto usefult. But this page mostly relates to Word; and Word differs a lot from Excel and other Office applications.


Andrei Smolin
Add-in Express Team Leader
Posted 17 Jun, 2013 09:33:10 Top
Andrei Smolin


Add-in Express team


Posts: 18825
Joined: 2006-05-11
I should have noted that it is possible to "click" the Undo button programmatically. Also, it is possible to read the caption of the first item in the Undo list.

I wonder if this will help.


Andrei Smolin
Add-in Express Team Leader
Posted 17 Jun, 2013 09:46:49 Top