Denis,
Try
IMPLEMENTS AppEvents IN {00020813-0000-0000-C000-000000000046}#1.6
>I need to handle Workbook Save event to protect the workbook with password.
>I can't find the way to implement event for Eventhandler
>
>In the object browser I can open COM class
>Library Excel
>Microsoft Excel 12.0 Object Library
>File: c:\programme\microsoft office\office12\excel.exe
>GUID: {00020813-0000-0000-C000-000000000046}
>
>When I drag and drop interface workbook into program I'v got some code like
>
>DEFINE CLASS myclass AS session OLEPUBLIC
> IMPLEMENTS _Workbook IN "Excel.Workbook"
>
>when I start it - error happens "Type Library Excel.Workbook not found "
>
>Ok. then I change it to
>
>DEFINE CLASS myclass AS session OLEPUBLIC
> IMPLEMENTS _Workbook IN "c:\programme\microsoft office\office12\excel.exe"
>
>it works!!! but the problem - I can't use static path in the application!.. when I change to IN "Excel.Application" or use CLSID - same problem with Type library not found
>
>Any ideas!
>Thanks
>Denis
--sb--