Ladies and Germs, lets hear it for SUB Workbook_BeforePrint

bill

Well-known Member
Joined
Mar 7, 2002
Messages
550
Hello,

I'm using the Workbook_BeforePrint subroutine to manually print jobs as I must make adjustments to FOOTERS and the like.

I ran into a snafu (above and beyond the PRINT PREVIEW issue in which the code kicks off even though you did not wish to print).

Without the procedure in place, one can (from the Workseet Menu Bar) select FILE>PRINT and be prompted with a print dialog window.

From there you can select a variety of print options.

Unfortunately, the procedure in question WILL NOT prompt for print options from FILE>PRINT. This might cause the user to print gobs of stuff (if my sneaky VBA has its way).

So, is there a way to call the window from VBA?

Thanks most kindly:)
This message was edited by bill on 2002-04-19 10:49
This message was edited by bill on 2002-04-19 10:50
This message was edited by bill on 2002-04-19 10:51
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
Not quite sure what you're asking for here. Is it this you want?

<pre>
Application.Dialogs(xlDialogPrint).Show</pre>
 
Upvote 0

Forum statistics

Threads
1,214,979
Messages
6,122,552
Members
449,088
Latest member
davidcom

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top