A
Andrew Cushen
Hi all-
I have a series of Word 2000 documents I need to open from
Excel 2000, using VBA & Word 2000 Automation, to extract
some data from; the data will go into the Excel
spreadsheet. The problem is, the names of the documents
vary. They are in this general format:
10020 abcd.doc
10021 jky.doc
10022 fden.doc
etc. The numbers are consecutive, but the text at the end
of the filename varies, as does its length- though it's
never longer than 4 letters. The number sequence never
repeats, and the numbers are unique. A filespec
like: "10020*.doc" would be what I need to open them.
My problem, as you may have guessed, is that the
Documents.Open() command wants an exact filename, not a
name with wildcards.
Does anyone know of a method by which I could open the
files, using wildcards or something similar?
TIA,
-Andrew
I have a series of Word 2000 documents I need to open from
Excel 2000, using VBA & Word 2000 Automation, to extract
some data from; the data will go into the Excel
spreadsheet. The problem is, the names of the documents
vary. They are in this general format:
10020 abcd.doc
10021 jky.doc
10022 fden.doc
etc. The numbers are consecutive, but the text at the end
of the filename varies, as does its length- though it's
never longer than 4 letters. The number sequence never
repeats, and the numbers are unique. A filespec
like: "10020*.doc" would be what I need to open them.
My problem, as you may have guessed, is that the
Documents.Open() command wants an exact filename, not a
name with wildcards.
Does anyone know of a method by which I could open the
files, using wildcards or something similar?
TIA,
-Andrew