where to place undo-function in vsto-projects?

G

Guest

hi.
I am having a C# Excel-Workbook project (VSTO) in which I would like to undo
a self-made function with the Application.OnUndo functionality.
My problem is, that I don't know where I should place the function which
should be called. When I click the Undo-Button in Excel an error-msg appears
saying the macro cannot be found.

I tried to place the function in different locations but it didn't work
until now. Any suggestions?
 
N

Norman Jones

Hi Cribe,

Have you tried placing the undo procedure in a standard module? Doing so, I
experienced no problem.
 
G

Guest

the problem is, i don't know where/what the standard module is in the c#
workbook-project (which class represents the standard module?).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top