Cannot convert applicationObject to 'Interface Application'

F

Franck

Hi
Just tryin to Cast the Excel Application which launched my addin like
this :

dim oExcel as Excel.Application
oExcel = CType(applicationOject, Excel.Application)

This code does not crash but if I break and watch the Ctype action
result, I can read : Cannot convert to 'Interface Application'

Does someone has a solution ?

Thks for help.
 

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