I’ve searched the Lounge, but that didn’t come up with anything useful. What I want to accomplish in VBA code is:
1. load a Word document
2. set this document to be used as the main document for a mailmerge
3. let the user pick a (comma separated) TXT file in a specific directory on the network (put there by a third party application)
4. set that textfile to be used as the datasource file for the mailmerge
5. do other stuff (change printer etc.)
6. execute the mailmerge.
The things I cannot get right are 2/3/4. The main purpose of trying to do this in VBA is that the path to the datasource files is very long and using the wizzard forces the user to click his way down to the desired file each time, because the wizzard always starts in the MySources directory. I tried recording a macro when going through the steps manually, but that failed because virtually nothing was recorded… Any ideas?
-
MailMerge datasource directory (WindowsXP / Word2003 NL)
- This topic has 6 replies, 2 voices, and was last updated 19 years, 5 months ago.
AuthorViewing 0 reply threadsAuthorViewing 0 reply threads