ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   query: print dialog with entire workbook set (https://www.excelbanter.com/excel-programming/354572-query-print-dialog-entire-workbook-set.html)

KevinGPO

query: print dialog with entire workbook set
 
How can I write a macro to display/show the print dialog box/window, but
with Entire Workbook selected?



Tom Ogilvy

query: print dialog with entire workbook set
 
sheets.select
application.Dialogs(xlDialogPrint).Show

--
Regards,
Tom Ogilvy


"KevinGPO" wrote in message
...
How can I write a macro to display/show the print dialog box/window, but
with Entire Workbook selected?





KevinGPO

query: print dialog with entire workbook set
 
What parameters do you put for Sheets.Select?


"Tom Ogilvy" wrote in message
...
sheets.select
application.Dialogs(xlDialogPrint).Show

--
Regards,
Tom Ogilvy


"KevinGPO" wrote in message
...
How can I write a macro to display/show the print dialog box/window, but
with Entire Workbook selected?







Tom Ogilvy

query: print dialog with entire workbook set
 
sheets.select selects all sheets - I equate this to your requirement "with
Entire Workbook selected"

After reading your question, I now believe you want to display the dialog
with the option button next to "Entire Workbook" to be selected.


so try this instead:

Sub abcd()
ExecuteExcel4Macro "PRINT?(1,,,,,,,,,,,3)"
End Sub

--
Regards,
Tom Ogilvy



"KevinGPO" wrote in message
...
What parameters do you put for Sheets.Select?


"Tom Ogilvy" wrote in message
...
sheets.select
application.Dialogs(xlDialogPrint).Show

--
Regards,
Tom Ogilvy


"KevinGPO" wrote in message
...
How can I write a macro to display/show the print dialog box/window,

but
with Entire Workbook selected?










All times are GMT +1. The time now is 06:14 AM.

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