>
>IMPLEMENTS ApplicationEvents2 IN "c:\program files\microsoftoffice\office\msword9.olb"
>
>Why can't I use the TypeLib???
>
John,
It only works if you use the type library which is what the OLB file is. Word.Application refers to WinWord.Exe and the type library inforamtion is not included in it.
You can use the Type library GUID if you want to make the IMPLEMENTS portable between machines. The GUID for the Word library is
{00020905-0000-0000-C000-000000000046}
You can copy and paste it from the bottom frame of the Object Browser when you highlight the top-level node.
HTH.
Larry Miller
MCSD
LWMiller3@verizon.netAccumulate learning by study, understand what you learn by questioning. -- Mingjiao