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

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
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,386
Messages
6,119,215
Members
448,874
Latest member
b1step2far

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