starpreast
New Member
- Joined
- Jun 9, 2013
- Messages
- 12
I have a program that looks for 3 different types of file. A spreadsheet, a word document, and a .dwg file for autocad all with the same die number.
I need to have the program auto print them. I have a couple loops that find the correct paths etc. for them, but the problem is printing them.
http://www.mrexcel.com/forum/excel-...-open-word-document-excel-but.html#post422928
using the code in this post I can print them just fine, but the problem is the strFilepath is declared as a const in the code. Every time I try to redeclare it or anything I get an error. I tried just setting the file path as a string, and then passing along the correct path to it before calling the print command.
I need to know how I can change the file path to the another string programmatically.
I need to have the program auto print them. I have a couple loops that find the correct paths etc. for them, but the problem is printing them.
http://www.mrexcel.com/forum/excel-...-open-word-document-excel-but.html#post422928
using the code in this post I can print them just fine, but the problem is the strFilepath is declared as a const in the code. Every time I try to redeclare it or anything I get an error. I tried just setting the file path as a string, and then passing along the correct path to it before calling the print command.
I need to know how I can change the file path to the another string programmatically.