Results 1 to 2 of 2

Thread: Error=429: ActiveX component can't create object

Threaded View

  1. #1

    Thread Starter
    New Member
    Join Date
    Nov 2007
    Posts
    2

    Error=429: ActiveX component can't create object

    I am creating a VB6 application to export data from MsAccess to Excel. It works fine on Windows XP Pro but gives an error "Error=429: ActiveX component can't create object" on Vista Home Premium. The development machine has Excel 11 where as the client machine has Excel 12. I included Excel 11 in the installer package.

    I have included the code that gives the error....

    ' Excel object variables
    Dim appExcel As Excel.Application
    Dim wbk As Excel.Workbook
    Dim wks As Excel.Worksheet
    Dim sTemplate As String
    Dim sTempFile As String
    Dim sOutput As String

    ' Create the Excel Applicaiton, Workbook and Worksheet and Database object
    Set appExcel = New Excel.Application
    Set wbk = appExcel.Workbooks.Open(sOutput)
    Set wks = appExcel.Worksheets("Sheet1")

    Thanks & Regards,

    Vibhu Bansal
    Last edited by si_the_geek; Dec 23rd, 2008 at 12:21 PM. Reason: removed 'advertising' link

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width