If I write this code in an Excel Module and run it:
Option Explicit
Dim xl As Word.Application
Sub Import()
Set xl = New Word.Application
End Sub
I get:
"Run-time error '430'
Class does not support Automation or does not support expected interface."
The strange thing is that it runs OK on another machine. I have encountered this many times before. If I have a class of students, it works on most machines and not on some.
Rather than tell the students that I've got no idea,it would be useful to tell them why or better still fix it.
(Of course a reference is set to the Microsoft Word 11.0 Object Library. I have checked that they are identical versions.)
Option Explicit
Dim xl As Word.Application
Sub Import()
Set xl = New Word.Application
End Sub
I get:
"Run-time error '430'
Class does not support Automation or does not support expected interface."
The strange thing is that it runs OK on another machine. I have encountered this many times before. If I have a class of students, it works on most machines and not on some.
Rather than tell the students that I've got no idea,it would be useful to tell them why or better still fix it.
(Of course a reference is set to the Microsoft Word 11.0 Object Library. I have checked that they are identical versions.)