View Single Post
  #7   Spotlight this post!  
Unread 18-03-2003, 23:46
nevek89 nevek89 is offline
Registered User
#0773 (Kingsville 1st)
 
Join Date: Feb 2003
Location: Kingsville, On
Posts: 7
nevek89 is an unknown quantity at this point
Send a message via ICQ to nevek89 Send a message via Yahoo to nevek89
msft

here is microsoft explanatino

OFF2000: Error Message: Run-time Error 429: ActiveX Component Can't Create Object
The information in this article applies to:
Microsoft Project 2000
Microsoft Excel 2000
Microsoft Access 2000
Microsoft Word 2000
Microsoft Outlook 2000
Microsoft PowerPoint 2000
Microsoft Visio 2000 Standard Edition
Microsoft Visual Basic for Applications

This article was previously published under Q281848
SYMPTOMS
When running code that calls the Common Dialog Control (Comdlg32.ocx) on a computer other than the one on which the code was developed, you may receive the following error message:

Run-time error 429: ActiveX component can't create object.
CAUSE
This problem can occur if the following conditions are true:
The control is called from Visual Basic for Applications code by using the New CommonDialog command.
The computer on which you are running the code has a run-time license instead of a design-time license for this control.
With a run-time license, you can load the control but you cannot create or insert it. The design-time license for this control that is included with the Microsoft Office 2000 Developer Edition, Microsoft Visual Basic 6.0, and Microsoft Visual Studio. It is not included with other versions of Microsoft Office 2000.
WORKAROUND
To work around this problem, wrap the control inside another control, such as a UserForm. To do this, follow these steps:
In the Visual Basic Editor, add a UserForm to your project.
Insert a common dialog control on the UserForm. For example, use the following code to call the common dialog control on the UserForm:
Sub test()
UserForm1.CommonDialog1.ShowOpen
End Sub

Save the workbook.
Becuase the control is wrapped in the UserForm and resides inside the project, you can now call it in run-time mode.