This may be due to a different version of the type library but i can't call
Excel.Application xl = new Excel.Application(); only
Excel._ExcelApplicationClass xl = new Excel._ExcelApplicationClass();
When i use the library Excel.Application is an interface and not a class so
i can't instatiate it. _ExcelApplicationClass can't be casted to Application
and doesn't offer the same methods as Application.
> ¤ Thanks for your help but all listed articles need excel 2002, I'm trying to
> ¤ automate using excel97 so i can't use oxppia.
[quoted text clipped - 7 lines]
> Paul ~~~ pclement@ameritech.net
> Microsoft MVP (Visual Basic)
Paul Clement - 18 Sep 2003 15:27 GMT
¤ This may be due to a different version of the type library but i can't call
¤ Excel.Application xl = new Excel.Application(); only
¤ Excel._ExcelApplicationClass xl = new Excel._ExcelApplicationClass();
¤
¤ When i use the library Excel.Application is an interface and not a class so
¤ i can't instatiate it. _ExcelApplicationClass can't be casted to Application
¤ and doesn't offer the same methods as Application.
Is there a reason why you're using the Excel 5.0 library? Excel 97 implements the version 8.0
library.
Paul ~~~ pclement@ameritech.net
Microsoft MVP (Visual Basic)