Microsoft KB Archive/106653: Difference between revisions
(importing KB archive) |
m (Text replacement - """ to """) |
||
Line 32: | Line 32: | ||
Because Word 6.0 can search for multiple file extensions, it does not accept file specifications on the end of the .SearchPath parameter. Below is an example of a FileFind .SearchPath parameter that is valid in Word 2.x but ignored in Word 6.0: | Because Word 6.0 can search for multiple file extensions, it does not accept file specifications on the end of the .SearchPath parameter. Below is an example of a FileFind .SearchPath parameter that is valid in Word 2.x but ignored in Word 6.0: | ||
<pre class="CODESAMP"> FileFind .SearchPath = | <pre class="CODESAMP"> FileFind .SearchPath = "C:\Winword\*.Doc" </pre> | ||
A correct .SearchPath parameter for Word 6.0 is | A correct .SearchPath parameter for Word 6.0 is | ||
<pre class="CODESAMP"> FileFind .SearchPath = | <pre class="CODESAMP"> FileFind .SearchPath = "C:\Winword" </pre> | ||
with the | with the "*.Doc" entered in the .Name parameter if necessary.<br /> | ||
<br /> | <br /> | ||
When macros are converted from Word 2.x to Word 6.0, file specifications, if any, are not removed from the .SearchPath parameter of the FileFind command. Therefore, these macros--once converted--will not run properly without being edited. | When macros are converted from Word 2.x to Word 6.0, file specifications, if any, are not removed from the .SearchPath parameter of the FileFind command. Therefore, these macros--once converted--will not run properly without being edited. |
Latest revision as of 10:12, 20 July 2020
FindFile .SearchPath Argument Ignored with File Extension |
Q106653
The information in this article applies to:
- Microsoft Word for Windows, versions 6.0, 6.0a, 6.0c
- Microsoft Windows 3.1
SYMPTOMS
If a file specification (for example, *.doc) is included in the .SearchPath parameter of the FileFind command, that parameter will be ignored.
CAUSE
Because Word 6.0 can search for multiple file extensions, it does not accept file specifications on the end of the .SearchPath parameter. Below is an example of a FileFind .SearchPath parameter that is valid in Word 2.x but ignored in Word 6.0:
FileFind .SearchPath = "C:\Winword\*.Doc"
A correct .SearchPath parameter for Word 6.0 is
FileFind .SearchPath = "C:\Winword"
with the "*.Doc" entered in the .Name parameter if necessary.
When macros are converted from Word 2.x to Word 6.0, file specifications, if any, are not removed from the .SearchPath parameter of the FileFind command. Therefore, these macros--once converted--will not run properly without being edited.
STATUS
Microsoft is researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available. Kbcategory: kbusage kbmacro
Additional query words: 6.0 File Find Directory winword word6
Keywords :
Issue type :
Technology :
Last Reviewed: December 15, 2000 |