On this link I tried to detect the paste event but I have a problem related to my Excel language. In summary I must change this line:
lastAction = Application.CommandBars("Standard").Controls("&Undo").List(1)
into
lastAction = Application.CommandBars("Standard").Controls("&Annulla").List(1)
As you can see, the code is language related and so I will have problems if I use it in other excel versions. Is there a better way to identify the undo control?
If I will not have a better way I will use
Application.LanguageSettings.LanguageID(msoLanguageIDUI)
to select the right Control. Where can I find a list of LanguageID for excel 2010 (and is it differnt from later version)?