WD2000: Run Time Error 5174 : "This file could not be found" with Open MethodID: Q212664
|
When you use the Visual Basic for Applications Open method to open a file,
the following error message may appear:
Run-time error '5174':
This file could not be found.
Try one or more of the following:
* Check the spelling of the name of the document.
* Try a different file name.
(Filename)
This problem occurs when the following conditions are true:
-and-
http://www.microsoft.com/mcsp/For more information about the support options available from Microsoft, please see the following page on the World Wide Web:
http://www.microsoft.com/support/supportnet/refguide/
Documents.Open FileName:="mydocument", Format:=wdOpenFormatRTF
-or-
Application.Options.DefaultOpenFormat = wdOpenFormatRTF
Documents.Open FileName:="mydocument"
To work around this issue, specify the file name extension as part of the
FileName argument. The following example opens a Rich Text Format (.rtf)
document that exists in the default document directory:
Documents.Open FileName:="mydocument.rtf"
Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article.
For more information about using the sample code in this article, please
see the following article in the Microsoft Knowledge Base:
Q212536 OFF2000: How to Run Sample Code from Knowledge Base Articles
For more information about getting help with Visual Basic for Applications, please see the following article in the Microsoft Knowledge Base:
Q226118 OFF2000: Programming Resources for Visual Basic for Applications
Additional query words: vb vba vbe Fileopen
Keywords : kbdta OffVBA word8 kbwordvba word97 wd2000
Version : WINDOWS:2000
Platform : WINDOWS
Issue type : kbbug
Last Reviewed: June 15, 1999