The information in this article applies to:
SUMMARYThis article contains a Microsoft Word for Windows macro that searches a specified group of files on a directory and lists each the format of each file as one of the following:
MORE INFORMATIONThis macro is useful for determining whether a file is in Word for Windows version 1.x . 2.x or 6.0 file format. It searches the specified directory and lists each file, followed by the indicator of its format. In the macro below, all the files with a .DOC file extension in the C:\WINWORD directory are listed and identified by file format. For example, you could search a directory containing the following four files:
After you run the macro, the files are listed in the active document
as follows:
In the above example, MYFILE1.DOC is Word for Windows version 1.x file
format, MYFILE2.DOC is Word for Windows version 2.0 file format, and
MYFILE3.DOC is a Word for Windows 6.0 and MYFILE4.Doc is a format
other than Word for Windows version 1.x, 2.0. or 6.0
Macros
The following macro can be used to determine the version of any single
file, and will present the information in a message box.
REFERENCES"Microsoft Word for Windows User's Guide," version 2.0, pages 765-785 Additional query words: 1.x 1.0 1.1 1.1a 2.0 winword2 winword word6 wordbasic determine
Keywords : |
Last Reviewed: December 23, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |