Stop Dialog box from appearing within macro

  • Thread starter Thread starter MrAlMackay
  • Start date Start date
M

MrAlMackay

I have the following macro which intercepts the printing on a particular
spreadsheet as I need to set certain criteria before the sheets are printed.

Although this then calls the individual macros, which then in turn print out
the relevant sheets all ok afterwards it loads up the print dialog box still.

Is it possible to stop the print dialog box from showing?

Appreciate any help that you can offer on this.

Many Thanks, Al Mackay ( (e-mail address removed) )
 
If you are talking about the "printing page 1 of 3" type dialog, then unless
you want to get into programming the windows API and subclassing Excel, then
I don't believe this can be suppressed.

Regards,
Tom Ogilvy
 
If you are using the BeforePrint event, then set Cancel = True in the
procedure


Regards,
Tom Ogilvy
 
Back
Top