|
-
Nov 24th, 1999, 01:44 AM
#1
Thread Starter
Junior Member
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
-
Nov 24th, 1999, 03:30 AM
#2
Hyperactive Member
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.
-
Nov 25th, 1999, 08:58 PM
#3
Thread Starter
Junior Member
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.
-
Nov 27th, 1999, 06:20 PM
#4
Junior Member
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|