Hi
I know how to open a Word doc using VBA when there is a specific filename to open.
However, the Word doc I want to open is an amalgamation of data from the existing record of a query.
e.g.
The files were save as CustomerName & " - " & anInteger & " - " & anotherInteger
as an example
Which might give a doc name as "Microsoft - 012 - 001"
However, since the name of the various companies are variable in length, the only 'absolutes' are the two integer values.
I want to be able to open a file (without a dialog appearing) that opens a file "*-" & " - " & anInteger & " - " & anotherInteger
As the last two integers are make the document unique.
I have to do it this way as customer names may change, but original documents will still refer to the original customer name.
Thx
I know how to open a Word doc using VBA when there is a specific filename to open.
However, the Word doc I want to open is an amalgamation of data from the existing record of a query.
e.g.
The files were save as CustomerName & " - " & anInteger & " - " & anotherInteger
as an example
Which might give a doc name as "Microsoft - 012 - 001"
However, since the name of the various companies are variable in length, the only 'absolutes' are the two integer values.
I want to be able to open a file (without a dialog appearing) that opens a file "*-" & " - " & anInteger & " - " & anotherInteger
As the last two integers are make the document unique.
I have to do it this way as customer names may change, but original documents will still refer to the original customer name.
Thx