ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Set "Print entire Workbook" property from interop code (https://www.excelbanter.com/excel-programming/388739-set-print-entire-workbook-property-interop-code.html)

Oliver

Set "Print entire Workbook" property from interop code
 
Hi Everyone,

is it possible to set the "Print entire Workbook" property from code ? I
haven't found a way so far.

Can anyone help me on this ?

thanks,
Oliver

Don Guillett

Set "Print entire Workbook" property from interop code
 
if fileprintyou would have found it.

ActiveWorkbook.PrintOut Copies:=1, Preview:=True, Collate:=True

--
Don Guillett
SalesAid Software

"Oliver" wrote in message
...
Hi Everyone,

is it possible to set the "Print entire Workbook" property from code ? I
haven't found a way so far.

Can anyone help me on this ?

thanks,
Oliver



Oliver

Set "Print entire Workbook" property from interop code
 
Hi,

thanks for your quick reply. using your snippet prints the workbook
directly. What i want to do is only set the property that it is marked by
default when the user opens the print dialog.

Any advice on this ?

thanks

"Don Guillett" wrote:

if fileprintyou would have found it.

ActiveWorkbook.PrintOut Copies:=1, Preview:=True, Collate:=True

--
Don Guillett
SalesAid Software

"Oliver" wrote in message
...
Hi Everyone,

is it possible to set the "Print entire Workbook" property from code ? I
haven't found a way so far.

Can anyone help me on this ?

thanks,
Oliver




Tom Ogilvy

Set "Print entire Workbook" property from interop code
 
There is no built in setting that I am aware of that controls this.

--
Regards,
Tom Ogilvy

"Oliver" wrote:

Hi,

thanks for your quick reply. using your snippet prints the workbook
directly. What i want to do is only set the property that it is marked by
default when the user opens the print dialog.

Any advice on this ?

thanks

"Don Guillett" wrote:

if fileprintyou would have found it.

ActiveWorkbook.PrintOut Copies:=1, Preview:=True, Collate:=True

--
Don Guillett
SalesAid Software

"Oliver" wrote in message
...
Hi Everyone,

is it possible to set the "Print entire Workbook" property from code ? I
haven't found a way so far.

Can anyone help me on this ?

thanks,
Oliver




NickHK

Set "Print entire Workbook" property from interop code
 
Oliver,
According to VBA help on "Built-In Dialog Box Argument Lists":
"xlDialogPrint
range_num, from, to, copies, draft, preview, print_what, color, feed,
quality, y_resolution, selection, printer_text, print_to_file, collate"

I would guess "print_what" is what you need, but I have no idea what value
is expected.
Some experimentation is required.

NickHK

"Oliver" wrote in message
...
Hi Everyone,

is it possible to set the "Print entire Workbook" property from code ? I
haven't found a way so far.

Can anyone help me on this ?

thanks,
Oliver





All times are GMT +1. The time now is 05:02 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com