Can't you just display the xlDialogPrint once and use it to set the defaults, or copy the values set from it? If the dialog doesn't set the defaults, you have to make up the list of default values, invoke the print dialog for the first file, copy the values set through the print dialog, and then feed the printing values from your program instead of the dialog every time.
But as you don't show the loop in which you actually ask the user and then print the things, and as I don't have Excel (or the time to play with it) on this machine, it's hard to know for sure unless you provide more information or try it yourself.
In reply to Re: WIN32, OLE, Excel, and Printing
by Corion
in thread WIN32, OLE, Excel, and Printing
by boblawblah
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |