Closed Thread
Results 1 to 5 of 5

where to place undo-function in vsto-projects?

Hybrid View

Guest where to place undo-function... 08-21-2006, 03:05 AM
Guest Re: where to place... 08-21-2006, 03:20 AM
Guest Re: where to place... 08-21-2006, 04:15 AM
Guest Re: where to place... 08-21-2006, 05:20 AM
Guest Re: where to place... 08-21-2006, 06:05 AM
  1. #1
    cribe
    Guest

    where to place undo-function in vsto-projects?

    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?

  2. #2
    Norman Jones
    Guest

    Re: where to place undo-function in vsto-projects?

    Hi Cribe,

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


    --
    Regards,
    Norman



    "cribe" <cribe@discussions.microsoft.com> wrote in message
    news:D90DB2B9-FF65-497B-89F2-0B217CDD647E@microsoft.com...
    > 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?




  3. #3
    cribe
    Guest

    Re: where to place undo-function in vsto-projects?

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


  4. #4
    NickHK
    Guest

    Re: where to place undo-function in vsto-projects?

    If you mean that you are writing your .OnUndo routine to the project from
    your C# code, you will need to work with the VBE.
    Here's a VB example:
    http://www.cpearson.com/excel/vbe.htm

    NickHK

    "cribe" <cribe@discussions.microsoft.com> wrote in message
    news:4AFE4E38-8596-4389-8E49-5786F949EA52@microsoft.com...
    > the problem is, i don't know where/what the standard module is in the c#
    > workbook-project (which class represents the standard module?).
    >




  5. #5
    cribe
    Guest

    Re: where to place undo-function in vsto-projects?

    so you think it's not even possible to call a c# function?


Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1