The information in this article applies to:
SYMPTOMSWhen you use the WordBasic FileOpen command to open more than one file at once, you may receive the following error message: If you use the same command line in Word 6.x for Windows or Word 6.0 for Windows NT, this error does not occur. CAUSE
This behavior is by design. Word for Windows 95 and Word 6.x for the
Macintosh both run under operating systems that support long file names.
Because long file names can contain spaces, there is no way to determine
whether a specified file name is intended to be one file or multiple files.
Because a file named "TEST1.DOC TEST2.DOC" does not exist, the macro fails.
MORE INFORMATION
Word version 6.0 for Windows NT does not have this behavior because it
doesn't support spaces in file names. Word for Windows NT interprets the
space as a file delimiter and, therefore, tries to open multiple files when
it encounters spaces. For example, if you have a file called "My file.doc,"
it won't open with the WordBasic FileOpen command in Word for
Windows NT because files called "My" and "File.doc" don't exist.
Additional query words:
Keywords : kberrmsg kbmacro kbmacroexample winword macword word7 word95 |
Last Reviewed: December 14, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |