newbee2
Technical User
- Apr 21, 2002
- 85
Hi,
The following code gives me the run time error 429. Active X can't create object.
I am atuomating from Excel 2000.
'create a word instance if there isn't one
'or use an existing instance if there is one in use
Set objWord = GetObject(, "Word.Application"
If Err.Number <> 0 Then
'Word not running, create new Instance
Set objWord = CreateObject("Word.Application"
objWord.Visible = True
End If
And also Runtime 4601 cant activate application.
If intReturn = vbNo Then
objDoc.ActiveDocument.Close SaveChanges:=wdDoNotSaveChanges
GoTo WordstartExit
I have referneced the following
Visual basic for apps
Microsoft excel 9
ole automation
office 9
forms 2
access 9
word 9
Any Suggestions
Regards
Bill
The following code gives me the run time error 429. Active X can't create object.
I am atuomating from Excel 2000.
'create a word instance if there isn't one
'or use an existing instance if there is one in use
Set objWord = GetObject(, "Word.Application"
If Err.Number <> 0 Then
'Word not running, create new Instance
Set objWord = CreateObject("Word.Application"
objWord.Visible = True
End If
And also Runtime 4601 cant activate application.
If intReturn = vbNo Then
objDoc.ActiveDocument.Close SaveChanges:=wdDoNotSaveChanges
GoTo WordstartExit
I have referneced the following
Visual basic for apps
Microsoft excel 9
ole automation
office 9
forms 2
access 9
word 9
Any Suggestions
Regards
Bill