FrustratedCoder
Programmer
Okay, I am sure someone out there has come across this before, but I am beat. The following code worked fine under Access 97 in conjunction with Word 97.
We have just updated to Office 2000 and now Word hangs when the code is executed. I would be extremely grateful for any help with this.
Thanks in advance for your help,
(A VERY) Frustrated Coder ;-)
We have just updated to Office 2000 and now Word hangs when the code is executed. I would be extremely grateful for any help with this.
Code:
Sub TranslateFile(ByVal FileName As String)
Dim myWord As Word.Document
Set myWord = GetObject(FileName)
myWord.SaveAs Left(FileName, Len(FileName) - 3) & "txt", wdFormatText
DoEvents
myWord.Application.Quit
Set myWord = Nothing
End Sub
Thanks in advance for your help,
(A VERY) Frustrated Coder ;-)