Stop Dialog box from appearing within macro

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) )
 
T

Tom Ogilvy

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
 
T

Tom Ogilvy

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


Regards,
Tom Ogilvy
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top