B
bzamfir
Hi,
I need to find a string in a word document, usoing automation from Access.
I have the following code - oWrd is Word.application type object, created
with CreateObject():
oWrd.Documents.Open (cOldWordFile)
' start processing of word file
Dim myRange As Word.Range
Dim myFind As Word.Find
Set myFind = oWrd.ActiveDocument.Content.Find
myFind.Execute findText:="Categorie A1", Forward:=True
In this line, I get the error message "Automation error - The stub received
bad data"
This code works OK from a module created in Word document itself.
Does anyone knows what cause this?
Regards,
Bogdan
I need to find a string in a word document, usoing automation from Access.
I have the following code - oWrd is Word.application type object, created
with CreateObject():
oWrd.Documents.Open (cOldWordFile)
' start processing of word file
Dim myRange As Word.Range
Dim myFind As Word.Find
Set myFind = oWrd.ActiveDocument.Content.Find
myFind.Execute findText:="Categorie A1", Forward:=True
In this line, I get the error message "Automation error - The stub received
bad data"
This code works OK from a module created in Word document itself.
Does anyone knows what cause this?
Regards,
Bogdan