K
Kilo Bravo
I am trying to open a word document from an excel VBA module.
Sub openWord()
Dim myfile As String
myfile = "C:\MyWord.doc"
Word.Documents.Open filename:=myfile
End Sub
Everything was working fine and then it stopped. Now I get "Error 429 - ActiveX component cannot create object"
The strange part is it was working fine. I must have deleted something accidently. I added the right word version object library in the references.
What else could be missing?
--
Kilo Bravo
/*****************************************************************************
To the optimist, the glass is half full.
To the pessimist, the glass is half empty.
To the engineer, the glass is twice as big as it needs to be.
******************************************************************************/
Sub openWord()
Dim myfile As String
myfile = "C:\MyWord.doc"
Word.Documents.Open filename:=myfile
End Sub
Everything was working fine and then it stopped. Now I get "Error 429 - ActiveX component cannot create object"
The strange part is it was working fine. I must have deleted something accidently. I added the right word version object library in the references.
What else could be missing?
--
Kilo Bravo
/*****************************************************************************
To the optimist, the glass is half full.
To the pessimist, the glass is half empty.
To the engineer, the glass is twice as big as it needs to be.
******************************************************************************/