Usually in the operation of Excel 2007 we may not always encounter the Print button. Or some people don't pay much attention to saving. Print Excel 2007 files at random. Even print directly from Excel 2007 files that are generally prohibited from printing. In the case of 014 Excel 2007 file editing and saving, and so on. How do we reject file printing?
In fact, this is relatively simple. We just need to use a macro command to solve the soldiers gymnastics as follows: Press ALT+F11 to open the VBA editor. If the VBA project pane is not displayed, press the key combination ctrl+r will be paged out; right-click "ThisWorkbook" and select "Stone Code two." Enter the code window:
Private Sub
Workbook_betoreprint (Cancel as Boolean)
Cancel. True
Msobox. Save paper reject print ". Vblnformalion End Sub
Then we have a combination chain alt+f11 back to Exce12007 (Figure 1). After that, not 20 you are directly clicking on the Print button. Or select Print from the Office Button or use the Quick Search ctrl+p to print directly. Will only show you the IQ in the macro instructions in the prompt. Save paper and refuse to print. This also lets you know that the reason the printer can't print is intentional, not hardware or software problems.
Classification: