Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Suppressing or turning off the Printing dialog

How can I not show the "Printing" dialog box that comes up when I print from
a VBA routine.

I've had problems when users accidently click the Cancel button and it stops
the code from executing. I figure not showing the dialog box is the best way
to avoid this.


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 694
Default Suppressing or turning off the Printing dialog

Hi Jeff,
Are you using the Dialogs to priont within vba? eg:
application.dialogs(xlDialogPrint....).Show
You can also use the PrintOut method:
Dim Wkb as Workbook, Wsh as Worksheet, Rg As Range
Wkb.PrintOut
Wsh.PrintOut
Rg.PrintOut
The PrintOut has parameters .. check in the Online-help.
Regards,
Sebastien

"Jeff Lefebvre" wrote:

How can I not show the "Printing" dialog box that comes up when I print from
a VBA routine.

I've had problems when users accidently click the Cancel button and it stops
the code from executing. I figure not showing the dialog box is the best way
to avoid this.


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Suppressing or turning off the Printing dialog

Thanks Sebastien.

I am using the PrintOut method, but don't see any options to suppress the
"Printing..." dialog box.

"sebastienm" wrote:

Hi Jeff,
Are you using the Dialogs to priont within vba? eg:
application.dialogs(xlDialogPrint....).Show
You can also use the PrintOut method:
Dim Wkb as Workbook, Wsh as Worksheet, Rg As Range
Wkb.PrintOut
Wsh.PrintOut
Rg.PrintOut
The PrintOut has parameters .. check in the Online-help.
Regards,
Sebastien

"Jeff Lefebvre" wrote:

How can I not show the "Printing" dialog box that comes up when I print from
a VBA routine.

I've had problems when users accidently click the Cancel button and it stops
the code from executing. I figure not showing the dialog box is the best way
to avoid this.


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 694
Default Suppressing or turning off the Printing dialog

sorry, i have no idea. I 've tried
Application.DisplayAlerts = False
Application.Screenupdating=false
but to no avail.

Sebastienm

"Jeff Lefebvre" wrote:

Thanks Sebastien.

I am using the PrintOut method, but don't see any options to suppress the
"Printing..." dialog box.

"sebastienm" wrote:

Hi Jeff,
Are you using the Dialogs to priont within vba? eg:
application.dialogs(xlDialogPrint....).Show
You can also use the PrintOut method:
Dim Wkb as Workbook, Wsh as Worksheet, Rg As Range
Wkb.PrintOut
Wsh.PrintOut
Rg.PrintOut
The PrintOut has parameters .. check in the Online-help.
Regards,
Sebastien

"Jeff Lefebvre" wrote:

How can I not show the "Printing" dialog box that comes up when I print from
a VBA routine.

I've had problems when users accidently click the Cancel button and it stops
the code from executing. I figure not showing the dialog box is the best way
to avoid this.


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Suppressing or turning off the Printing dialog

You could only hide it by using the wiindows API to freeze the screen.
Search the google archives for the code.

--
Regards,
Tom Ogilvy

"Jeff Lefebvre" wrote in message
...
Thanks Sebastien.

I am using the PrintOut method, but don't see any options to suppress the
"Printing..." dialog box.

"sebastienm" wrote:

Hi Jeff,
Are you using the Dialogs to priont within vba? eg:
application.dialogs(xlDialogPrint....).Show
You can also use the PrintOut method:
Dim Wkb as Workbook, Wsh as Worksheet, Rg As Range
Wkb.PrintOut
Wsh.PrintOut
Rg.PrintOut
The PrintOut has parameters .. check in the Online-help.
Regards,
Sebastien

"Jeff Lefebvre" wrote:

How can I not show the "Printing" dialog box that comes up when I

print from
a VBA routine.

I've had problems when users accidently click the Cancel button and it

stops
the code from executing. I figure not showing the dialog box is the

best way
to avoid this.






Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Hiding the 'printing' dialog box matpj Excel Discussion (Misc queries) 3 May 15th 06 08:31 AM
Suppressing output Norman Jones Excel Programming 0 September 8th 04 04:35 PM
control of dialog macro dialog box. on open Gerry Abbott Excel Programming 0 July 22nd 04 05:41 PM
Getting "Save as PDF File" Dialog at end of printing to PDF using PDFwriter Chuck Reed Excel Programming 4 May 13th 04 12:01 PM
Suppressing messages Ron de Bruin Excel Programming 0 September 4th 03 03:51 PM


All times are GMT +1. The time now is 05:20 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"