Robert Macy <(E-Mail Removed)> wrote:
>This may be OT for WinXP, but here is the problem:
>
>Running Word 2003 on WinXP I use a macro to print some 120 documents.
>The order come out random and each print run has to be collated to put
>them into alphabetical order!
>
>Of course the documents all come up in Windows Explorer in any order
>selectable, yet the macro prints in the order the documents appear on
>the drive in DOS memory and ignore any other order. As a result I
>have to collate these documents back into order!
What file system is your disk using? In the FAT systems, files can be
stored in any order, and simply traversing the directory will bring
them back in whatever order they are stored in. In NTFS, files are
stored in a BTree, therefore traversing the directory brings them back
in alphabetical order.
I don't know whether the fact that you're using a Word macro would
impact this, but I doubt it.
Another possibility: is it possible to have your macro retrieve a list
of file names, sort that list, then iterate over the list and print
each file?
--
Tim Slattery
MS MVP(Shell/User)
(E-Mail Removed)
http://members.cox.net/slatteryt