Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > VB How-To
|
VB How-To Ask your "How do I do this with VB?" questions in this forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 6th, 2006, 01:20 PM
Authorized User
 
Join Date: Aug 2006
Posts: 31
Thanks: 0
Thanked 0 Times in 0 Posts
Default Run time error 429- ActiveX component can't create

I keep getting this error "Run time error 429 - ActiveX component can't create" on my program when i try to run it. Right at this line of code:
Set objApp = GetObject(, "Word.Application")

It ran just the other day perfect, now I cannot get past this "Run time error 429 - ActiveX component can't create"
help please. here is a few lines of the code.

Private Sub cmdOpenDocument_Click()

    Set objApp = GetObject(, "Word.Application")

    'OPEN PROCEDURE AND SET DOCUMENT OBJECT
    Documents.Open (Me.txtPath)
    Set objDoc = objApp.ActiveDocument

    'SET PARAGRAPHS COLLECTION OBJECT
    Set objPars = objDoc.Paragraphs

    intLineNum = 1
    intLev01 = 0
    intLev02 = 0
    intLev03 = 0
    intLev04 = 0

    'ENABLE CLOSE DOCUMENT BUTTON
    Me.cmdGetNextLine.Enabled = True
    Me.cmdGetHeader.Enabled = True
    Me.cmdCloseDocument.Enabled = True
    Me.cmdGetNextLine.SetFocus
    Me.cmdOpenDocument.Enabled = False
    Me.cmdSaveDocData.Enabled = True

    'INITIALIZE THE RANK COUNTERS
    Me.txtChRank = 1
    Me.txtSigRank = 1

End Sub

 
Old September 6th, 2006, 04:05 PM
Authorized User
 
Join Date: Aug 2006
Posts: 31
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I found why i was getting the error.

 
Old September 8th, 2006, 12:22 PM
Friend of Wrox
 
Join Date: Nov 2004
Posts: 1,621
Thanks: 1
Thanked 3 Times in 3 Posts
Default

How about sharing when you find the solution?





Similar Threads
Thread Thread Starter Forum Replies Last Post
Run time error 429 - ActiveX component can't creat carswelljr Pro Visual Basic 2005 2 September 8th, 2006 11:32 AM
Run-Time Error 429 SerranoG Access VBA 2 December 20th, 2004 07:28 PM
Run Time Error 429 wwwdirzala Pro VB Databases 1 July 18th, 2004 11:58 PM
Run-time error '429' Dmitriy Pro VB 6 1 August 27th, 2003 01:46 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.