View Single Post
 
Old 05-30-2014, 06:23 AM
jpb103's Avatar
jpb103 jpb103 is offline Windows 7 64bit Office 2007
Advanced Beginner
 
Join Date: May 2014
Location: Thunder Bay, Ontario
Posts: 58
jpb103 is on a distinguished road
Default

I keep getting a Run-time error '429' (ActiveX component can't create object) on the following line in the UpdateFileData sub:
Code:
Set wdDoc = Documents.Open(strDoc, AddToRecentFiles:=False, ReadOnly:=False, Format:=wdOpenFormatAuto, Visible:=False)
*EDIT* I did find a solution, and it appears to work; but I'm not completely happy with it.
From Excel Help:
Quote:
The class isn't registered. For example, the system registry has no mention of the class, or the class is mentioned, but specifies either a file of the wrong type or a file that can't be found. If possible, try to start the object's application. If the registry information is out of date or wrong, the application should check the registry and correct the information. If starting the application doesn't fix the problem, rerun the application's setup program.
Basically, Word has to be open for the macro to run successfully. Is there a way to open Word initially and then close it (programatically) once the macro is finished?

Last edited by jpb103; 05-30-2014 at 06:58 AM. Reason: Progress
Reply With Quote