-
Hello,
I'm trying to open a document, and I think I was successful in doing so about 30 min ago, but now I get an error (Run-time error 5174: "This file could not be found")
But!!! The file DOES exist!!!
Please, help me if you can!
Thank you!
Here's my code:
Set wrd = CreateObject("Word.Application")
fileout = "C:\Test.rtf"
wrd.Documents.Open fileout
-
Well, I've only done this is Access using VBA but I do the same except:
wrd.Application.Documents.Open fileout
I have Application between the wrd object and Documents. I'm not sure whether this is particular for VBA or not though. Give it a shot. Hope it helps.
-
Nope, that didn't work.
It looks like the very first time I open a document, it's fine. After that - it gives me the error.
-
Maybe you need to close the file when the Program quits, because it sounds like its staying in memory as being open.
Just a thought. :)
------------------
Quadrex
[email protected]
Quadrex Programming