Guest_imported
New member
- Jan 1, 1970
- 0
I am developing a command button on an Acess form that will open Word, mail merge the query infomation, print, and close out of Word. all without the user seeing any of this.
I have taken 2 approaches to this task.
1. use the shell function (found on this site) to open Word, the file, and the marco. this works, but i cannot figure out how to close Word once this is complete. I also set the Shell statement to vbHdie, but i can still see Word when i run this.
2. use the Dim Object varaible to open Word and the file. Hide Word, and close out of the File and Word. My problem here is that i cannot figure out how to run the macro from access once the file is open.
Thank you for your assistance.
I have taken 2 approaches to this task.
1. use the shell function (found on this site) to open Word, the file, and the marco. this works, but i cannot figure out how to close Word once this is complete. I also set the Shell statement to vbHdie, but i can still see Word when i run this.
2. use the Dim Object varaible to open Word and the file. Hide Word, and close out of the File and Word. My problem here is that i cannot figure out how to run the macro from access once the file is open.
Thank you for your assistance.