L
Larry K
Does anyone know how to make a macro that will add multiple files to an
opened Word file? Here is the example:
In an open file I want to add the following files to it using a macro. The
files are:
1a.doc
1b.doc
1c.doc
2.doc and so forth.
I would like the macro to add files named 1*.doc, 2*.doc, etc. to the opened
file.
When I try to use a wildcard file name instead of listing all individual
file names then the macro will not work. If I list each file name then it
works fine.
The questions are (1) can Word handle wildcards in macros or (2) if not, how
could I construct a conditional macro to do the same thing?
A conditional macro would go something like: If 1a.doc exists then add it.
If 1b.doc exists then add it. etc.
Thanks for any advice and help with syntax and possibilities!
opened Word file? Here is the example:
In an open file I want to add the following files to it using a macro. The
files are:
1a.doc
1b.doc
1c.doc
2.doc and so forth.
I would like the macro to add files named 1*.doc, 2*.doc, etc. to the opened
file.
When I try to use a wildcard file name instead of listing all individual
file names then the macro will not work. If I list each file name then it
works fine.
The questions are (1) can Word handle wildcards in macros or (2) if not, how
could I construct a conditional macro to do the same thing?
A conditional macro would go something like: If 1a.doc exists then add it.
If 1b.doc exists then add it. etc.
Thanks for any advice and help with syntax and possibilities!