A1VBCode Forums

Inclding Word&Excel reference in activex


http://www.a1vbcode.com/vbforums/Topic12655.aspx

By pratheep leslie - 7/9/2005

Hi ,

       I've got the solution to my previous problem regarding saving my records from VB to Excel and word.
     Here comes a new problem about including the reference in my activex. According to my application i wil call a FORM which is in Activex and in that FORM it will display the records in Flex grid. I have relavant buttons in that FORM to save my records in Word or Excel. To use the properties and methods of Excl and Word i reference MICROSOFT EXCEL 10.0 LIBRARY & MICROSOFT WORD 10.0 LIBRARY.
   After when i compile my activex and open my application which has my activex i get an error stating "TYPE MISMATCH"
    I found that this is due to the inclusion of the WORD and EXCEL libraries in Activex. So i don't know how to acess the WORD & EXCEL libraries in my Activex.

   But it is working perfectly stand alone, but not in Activex.

      Please help me out in this problem.

Regards,
Pratheep.